to_long_tab: 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