as_draws {rbmi} | R Documentation |
Creates a draws
object
Description
Creates a draws
object which is the final output of a call to draws()
.
Usage
as_draws(method, samples, data, formula, n_failures = NULL, fit = NULL)
Arguments
method |
A |
samples |
A list of |
data |
R6 |
formula |
Fixed effects formula object used for the model specification. |
n_failures |
Absolute number of failures of the model fit. |
fit |
If |
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.