to_long_tab {regrrr}R Documentation

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

Description

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

Usage

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

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


[Package regrrr version 0.1.3 Index]