Creates a draws
object which is the final output of a call to draws()
.
Arguments
- method
A
method
object as generated by eithermethod_bayes()
,method_approxbayes()
,method_condmean()
ormethod_bmlmi()
.- samples
A list of
sample_single
objects. Seesample_single()
.- data
R6
longdata
object containing all relevant input data information.- formula
Fixed effects formula object used for the model specification.
- n_failures
Absolute number of failures of the model fit.
- fit
If
method_bayes()
is chosen, returns the MCMC Stan fit object. OtherwiseNULL
.
Value
A draws
object which is a named list containing the following:
data
: R6longdata
object containing all relevant input data information.method
: Amethod
object as generated by eithermethod_bayes()
,method_approxbayes()
ormethod_condmean()
.-
samples
: list containing the estimated parameters of interest. Each element ofsamples
is a named list containing the following:ids
: vector of characters containing the ids of the subjects included in the original dataset.beta
: numeric vector of estimated regression coefficients.sigma
: list of estimated covariance matrices (one for each level ofvars$group
).theta
: numeric vector of transformed covariances.failed
: Logical.TRUE
if the model fit failed.ids_samp
: vector of characters containing the ids of the subjects included in the given sample.
fit
: ifmethod_bayes()
is chosen, returns the MCMC Stan fit object. OtherwiseNULL
.n_failures
: absolute number of failures of the model fit. Relevant only formethod_condmean(type = "bootstrap")
,method_approxbayes()
andmethod_bmlmi()
.formula
: fixed effects formula object used for the model specification.