View source: R/modelsSummary.R
modelsSummary | R Documentation |
Make Summary for Model Coefficients
modelsSummary( fit = NULL, labels = NULL, vars = NULL, moderator = NULL, covar = NULL, serial = FALSE, data = NULL, prefix = "b", constant = "iy", autoPrefix = TRUE )
fit |
A list of objects of class lm |
labels |
optional list |
vars |
optional list |
moderator |
optional list |
covar |
optional list |
serial |
logical |
data |
optional data.frame |
prefix |
A character |
constant |
A string vector |
autoPrefix |
logical automatic numbering of prefix |
A data.frame
fit1=lm(mpg~wt,data=mtcars) fit2=lm(mpg~wt*hp*am,data=mtcars) fit=list(fit1,fit2) labels=list(Y="mpg",X="wt",W="hp",Z="am") modelsSummary(fit,labels=labels) labels=list(Y="withdraw",M="affect",X="estress") covar=list(name=c("ese","sex","age"),site=list(c("M","Y"),c("M","Y"),c("M","Y"))) modelsSummary(labels=labels,covar=covar,data=estress) labels=list(X="dysfunc",M="negtone",W="negexp",Y="perform") moderator=list(name="negexp",site=list(c("a","b","c"))) eq=tripleEquation(labels=labels,moderator=moderator,data=teams,mode=1) fit=eq2fit(eq,data=teams) modelsSummary(fit,labels=labels) labels=list(X="cond",M="pmi",Y="reaction") modelsSummary(labels=labels,data=pmi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.