prepareMixedEffectDataset {robustlmm} | R Documentation |
Prepare Dataset for Parametric Bootstrap
Description
This function runs lmer
and extracts all information needed to
generate new datasets using parametric bootstrap later.
Usage
prepareMixedEffectDataset(
formula,
data,
REML = TRUE,
overrideBeta,
overrideSigma,
overrideTheta,
...
)
Arguments
formula |
passed on to |
data |
passed on to |
REML |
passed on to |
overrideBeta |
use to override beta used to simulate new datasets, by
default |
overrideSigma |
use to override sigma used to simulate new datasets, by
default |
overrideTheta |
use to override theta used to simulate new datasets, by
default |
... |
all additional arguments are added to the returned list. |
Value
List that can be passed to
generateMixedEffectDatasets
.
data: |
the original dataset |
X: |
the X matrix as returned by
|
Z: |
the Z matrix as returned by
|
Lambda: |
the Lambda matrix as returned
by |
numberOfFixedEffects: |
the number of fixed effects coefficients |
numberOfRandomEffects: |
the number of random effects |
numberOfRows: |
number of rows in the generated dataset |
trueBeta: |
true values used for beta |
trueSigma: |
true value used for sigma |
trueTheta: |
true values used for theta |
formula: |
formula to fit the model using |
...: |
additional arguments passed via |
Author(s)
Manuel Koller
Examples
preparedDataset <- prepareMixedEffectDataset(Reaction ~ Days + (Days|Subject), sleepstudy)
str(preparedDataset)