modelsSummary: Make Summary for Model Coefficients

View source: R/modelsSummary.R

modelsSummaryR Documentation

Make Summary for Model Coefficients

Description

Make Summary for Model Coefficients

Usage

modelsSummary(
  fit = NULL,
  labels = NULL,
  vars = NULL,
  moderator = NULL,
  covar = NULL,
  serial = FALSE,
  data = NULL,
  prefix = "b",
  constant = "iy",
  autoPrefix = TRUE
)

Arguments

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

Value

A data.frame

Examples

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)

processR documentation built on Jan. 23, 2023, 5:44 p.m.