View source: R/VarCorrtableloop.R
| VarCorrtableloop | R Documentation |
VarCorr table loop
VarCorrtableloop(d, m, dv, s, r)
d |
a data frame. |
m |
a lmer model i.e "tr + p + (1|a)". |
dv |
a vector with the dependent variable of interest i.e c("var1","var2","var3") |
s |
significant digits of least square means. empty: will round the number to 3 decimals. number 1 to 6: will return the desired significant digits. |
r |
type of residual to display. empty: will return both random effect and error residuals "residuals" or "residual" or "res": will return only error residuals. "effect" or "eff": will return random error residuals. |
A data frame with the standard error of the random effect and error residuals. Use the VarCorr function to return the output for a serie of variable in one linear mixed model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.