Learn R Programming

processR (version 0.2.3)

modelsSummary2: Make Summary for Model Coefficients

Description

Make Summary for Model Coefficients

Usage

modelsSummary2(
  fit,
  labels = NULL,
  prefix = "b",
  constant = "iy",
  fitlabels = NULL,
  autoPrefix = TRUE
)

Arguments

fit

A list of objects of class lm

labels

optional list

prefix

A character

constant

A string vector

fitlabels

Optional. labels of models

autoPrefix

logical

Value

A data.frame

Examples

Run this code
# NOT RUN {
fit1=lm(mpg~wt,data=mtcars)
fit2=lm(mpg~wt*hp*vs+am,data=mtcars)
labels=list(Y="mpg",X="wt",W="hp",Z="vs")
fit=list(fit1,fit2)
modelsSummary2(fit,labels=labels)
modelsSummary2(fit,labels=labels,prefix=c("c","b"),autoPrefix=FALSE)
modelsSummary2(fit1)
# }

Run the code above in your browser using DataLab