grab_design_levels | R Documentation |
Useful when splitting data later, used with grab_design_matrix
or especially when calling grab_psiFUN
from within an eeFun.
grab_design_levels(model)
model |
a model object such as |
A named list of character vectors that provides the fentire set of
levels that each factor predictor in model
will take on. This is
hopefully identical to what the xlev
argument to
link[stats]{model.frame}
desires. When model
has no factors
as predictors, then an empty list is returned.
## Not run: geex::grab_design_matrix( data = data, rhs_formula = geex::grab_fixed_formula(model), xlev = geex::grab_design_levels(model) ) ## Below is helpful within an eeFun. geex::grab_psiFUN( data = data,## Especially when this is a subset of the data rhs_formula = geex::grab_fixed_formula(model), xlev = geex::grab_design_levels(model) ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.