Learn R Programming

hzar (version 0.2-5)

hzar.make.dataGroup: Make a hzar.dataGroup object with given parameters.

Description

Make a hzar.dataGroup object with given parameters. This method only needs the mcmc chain to encapsulate and the log likelhood function generated by hzar.make.clineLLfunc.old.ML or hzar.make.clineLLfunc.old.bayes.

Use hzar.dataGroup.add and hzar.fit2DataGroup instead of this method as they operate directly on a hzar.fitRequest object.

Usage

hzar.make.dataGroup(data.mcmc, llFunc, ML.cline = NULL, doPar = FALSE, data.LL = hzar.eval.clineLL(llFunc = llFunc, data = data.mcmc, doPar = doPar), data.param = as.data.frame(data.mcmc), obsData = hzar.extract.obsData(llFunc))

Arguments

data.mcmc
The mcmc chain to encapsulate.
llFunc
The log likelihood function of the model.
ML.cline
The hzar.cline of maximum likelihood. Automatically calculated from data.mcmc if NULL.
doPar
Argument passed to hzar.eval.clineLL.
data.LL
The log likelihood of each row of data.mcmc.
data.param
data.mcmc as a data.frame.
obsData
The hzar.obsData object backing the hzar.dataGroup created.

Value

Object of class hzar.dataGroup
llFunc
llFunc from above.
data.mcmc
data.mcmc from above.
data.param
data.mcmc as a data.frame.
data.LL
The log likelihood of each row of data.param.
ML.cline
See hzar.get.ML.cline.
obsData
The hzar.obsData object backing llFunc.

See Also

hzar.eval.clineLL hzar.extract.obsData hzar.dataGroup.add hzar.fit2DataGroup