A "skeleton" is a data frame containing "nicely spaced" values for the explanatory variables
in a model.
Usage
model_skeleton(mod, data = NULL, ncont = 3, nfirstcont = 50)
Value
a data frame
Arguments
mod
A fitted model or a tilde expression describing a model structure, e.g. outcome ~ vara+varb.
data
a data frame. Relevant only when mod is a tilde expression
ncont
minimum number of levels at which to represent continuous variables. (More levels
may be added to "prettify" the choices. See pretty().)
nfirstcont
Like ncont, but for the first explanatory variable if it is categorical. This variable is mapped
to the horizontal axis and so should have many levels to produce a smooth graph. (Default: 50)