coef.dream: Extract parameter values from dream or dream_model object

Description Usage Arguments Details Value

Description

Extract parameter values using a choice of methods (or an arbitrary function)

Usage

1
2
3
4
## S3 method for class 'dream'
coef(object, method = c("sample.ml","uni.mode", "mean",
"median"), ...)
maxLikCoda(x)

Arguments

x

for maxLikCoda, usually mcmc or mcmc.list object, or any representation of MCMC chains that can be converted with as.matrix

object

dream object

method

method for extracting a parameter set from the MCMC chains. One of:

"uni.mode"

using maxLikCoda, mode of the univariate density estimate for each parameter, using settings as in densityplot.mcmc. May not find the optimal parameter combination of the distribution is multi-modal.

"mean"

mean of each univariate parameter distribution.

"median"

median of each univariate parameter distribution.

"sample.ml"

parameter set with maximum likelihood (according to the chosen likelihood function) from the generated MCMC chains.

function(object)

a function of the dream object which returns a parameter vector.

...

Passed to window.dream

Details

maxLikCoda re-uses code from densityplot.mcmc

e.g. of using arbitrary function for method: 20% quantile. coef(object,method=function(sss) apply(as.matrix(sss),2,quantile,0.2)

Value

named vector of parameter values


dream documentation built on May 2, 2019, 5:21 p.m.

Related to coef.dream in dream...