getData | R Documentation |
Get the data associated with a model object.
getData(object)
getData(object) <- value
object |
a fitted model object (e.g. an object of class |
value |
a new |
Looks for data in the following order:
The object's newData
attribute, if it has been set by simr
.
The data
argument of getCall(object)
, in the environment of formula(object)
.
A data.frame
with the required data.
lm1 <- lmer(y ~ x + (1|g), data=simdata)
X <- getData(lm1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.