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

Description Usage Arguments Value Author(s) See Also

View source: R/40-hzarPostProcessing.R

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

1
2
3
4
5
6
7
8
9
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.

Author(s)

Graham Derryberry asterion@alum.mit.edu

See Also

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


hzar documentation built on May 2, 2019, 7 a.m.