tbl_std: Create table with standardized estimates

Description Usage Arguments Value Examples

Description

This function creates a stargazer table with standardized estimates

Usage

1
tbl_std(model, type = "text", ...)

Arguments

model

put in the model (lm object) here.

...

stargazer options.

Value

returns a stargazer table.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# #fake data
var1<-rnorm(100, mean=10, sd=5)
var2<-rnorm(100, mean=5, sd=2)
var3<-rnorm(100, mean=2, sd=3)
var4<-rnorm(100, mean=5, sd=1)
df<-data.frame(var1, var2, var3, var4)
#model with unstandardized betas
model1<-lm(var1~var2+var3+var4, data=df)

tbl_std(model1)

favstats/tidytemplate documentation built on June 22, 2019, 4:03 a.m.