to_long_tab: Convert the regression result to the long format: the...

Description Usage Arguments Examples

View source: R/regression.table.R

Description

Convert the regression result to the long format: the standard errors are in parentheses and beneath the betas

Usage

1
to_long_tab(reg.coef, d = 3, t.value.col = 3, Pr.col = 4)

Arguments

reg.coef

a data.frame (or matrix) of regression result or a coeftest object, e.g. summary(lm_model)$coef, coeftest(lm_model, cluster.vcov(lm_model, cbind(data$group1, data$group2)))

d

number of decimal places to retain

t.value.col

col number of the t-score in the reg.coef data.frame

Pr.col

col number of the Prob.(>|t|)) in the reg.coef data.frame

Examples

1
2
3
data(mtcars)
m1 <- lm(mpg ~ vs + carb + hp + wt + wt * hp , data = mtcars)
to_long_tab(reg.coef = summary(m1)$coef) 

regrrr documentation built on Aug. 13, 2021, 5:07 p.m.