model.frame.tramME | R Documentation |
Extract model frame from a tramME model
## S3 method for class 'tramME'
model.frame(
formula,
data = NULL,
group_as_factor = FALSE,
ignore_response = FALSE,
...
)
formula |
A |
data |
a data frame, list or environment (or object
coercible by |
group_as_factor |
Logical; If |
ignore_response |
Logical; If |
... |
Optional arguments, passed to |
In mlt
, the basis functions expect the response variables
in the data to be evaluated, i.e. instead of x
and y
columns
we should have a `Surv(x, y)`
column when the response is a
Surv
object. model.frame.tramME
builds the
model frame accordingly, assigning to the resulting object the class
tramME_data
to indicate this structure to other functions that use
its results. If the input data
is a tramME_data
is also expects
this structure.
A tramME_data
object, which is also a data.frame
.
data("sleepstudy", package = "lme4")
mod <- LmME(Reaction ~ Days + (Days | Subject), data = sleepstudy, nofit = TRUE)
model.frame(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.