getData {simr} | R Documentation |
Get an object's data.
Description
Get the data associated with a model object.
Usage
getData(object)
getData(object) <- value
Arguments
object |
a fitted model object (e.g. an object of class |
value |
a new |
Details
Looks for data in the following order:
The object's
newData
attribute, if it has been set bysimr
.The
data
argument ofgetCall(object)
, in the environment offormula(object)
.
Value
A data.frame
with the required data.
Examples
lm1 <- lmer(y ~ x + (1|g), data=simdata)
X <- getData(lm1)
[Package simr version 1.0.7 Index]