powered by
Get the data associated with a model object.
getData(object)getData(object) <- value
getData(object) <- value
A data.frame with the required data.
data.frame
a fitted model object (e.g. an object of class merMod or lm).
merMod
lm
a new data.frame to replace the old one. The new data will be stored in the newData attribute.
newData
Looks for data in the following order:
The object's newData attribute, if it has been set by simr.
simr
The data argument of getCall(object), in the environment of formula(object).
data
getCall(object)
formula(object)
lm1 <- lmer(y ~ x + (1|g), data=simdata) X <- getData(lm1)
Run the code above in your browser using DataLab