Description Usage Arguments Value Examples
Calculate the Residuals for Predictions
1 2 3 |
object |
an mipai or mibootpai class object returned from
|
type |
A character string indicating the type of residuals to be calculated.
Currents mean or median of the absolute or root squared values. Only applies
when summarize is |
summarize |
Logical whether or not to summarize values for individuals
across imputations or leave as a matrix of residuals. Defaults to |
boot |
Not currently used. |
dots |
Additional arguments to pass down. Not currently used. |
A vector of residuals for each person or matrix across the multiple imputations.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# builtin dataset with 32 cases
dat <- mtcars
dat$cyl <- factor(dat$cyl)
m <- mi_lm_pai_cvboot(~ cyl + am * (mpg + hp + drat + wt),
"disp", "am", list(dat, dat),
nboot = 50, holdouts = "10", cores = 2)
residuals(m, "RootMeanSq")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.