print_with_confint | R Documentation |
this is a small auxiliary function that reformats the coefficient estimates of regression models.
print_with_confint(coefs, df = Inf, exp = FALSE, conf.level = 0.95)
coefs |
two-column matrix. First column should be the estimate, second column should be the the standard error as returned from summary method |
df |
numeric, denominator degrees of freedom if t-d |
exp |
logical, defaults to FALSE. Should the estimates be transformed with exp(.)? |
conf.level |
numeric, confidence level. Defaults to 0.95 . |
a matrix
data(datasets::mtcars)
mod <- lm(mpg ~ disp+hp+wt, data=mtcars)
coefs <- summary(mod)$coefficients[,1:2]
print_with_confint(coefs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.