VarCorrtableloop: VarCorr table loop

View source: R/VarCorrtableloop.R

VarCorrtableloopR Documentation

VarCorr table loop

Description

VarCorr table loop

Usage

VarCorrtableloop(d, m, dv, s, r)

Arguments

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.

Value

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.


giuliogiagnoni/autheme documentation built on July 29, 2023, 4:43 a.m.