findFormFuns | R Documentation |
findFormFuns
used by averageObs to calculate proper
averagesThe purpose is to properly derive data for the average observation in the
data by being 'aware' of formulas that contain interactions and/or function
calls. For example, in the old behavior, if the formula contained a square
term specified as I(x^2)
, we were returning the mean of x(^2)
not the
square of mean(x).
findFormFuns(merMod, origData = NULL)
merMod |
the merMod object from which to draw the average observation |
origData |
(default=NULL) a data frame containing the original, untransformed data used to call the model. This MUST be specified if the original variables used in formula function calls are NOT present as 'main effects'. |
a data frame with a single row for the average observation, but with full factor levels. See details for more.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.