View source: R/lmertableloop.R
| lmertableloop | R Documentation |
lmertableloop
lmertableloop(d, m, ivm, ivp, dv, p, s, con, ivc, let = TRUE)
d |
a data frame. |
m |
a lmer model i.e "tr + p + (1|a)" or "tr * p + (1|a)". |
ivm |
indepent variable of the model to compute the p-values i.e. "tr" or c("tr","p", "tr:p") |
dv |
a vector with the dependent variable of interest i.e c("var1","var2","var3") |
p |
significant digits of p-values. empty: will round the number to 3 decimals. "full": will leave all the digits. "std1": will round to 2 digits, or print <0.01 or <0.001. |
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. "full": will leave all the digits. |
con |
the list of contrast... need to specify 1 independent variable. |
ivc |
independent variable of the model to computer the contrasts |
let |
TRUE if you want to include the letter of the tuckey's test difference next to the least square means. |
A data frame with variable names, least square means (emmeans), maximim SEM, p-values, and p-values of contrasts.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.