print_with_confint: print_with_confint

View source: R/misc_pm.R

print_with_confintR Documentation

Description

this is a small auxiliary function that reformats the coefficient estimates of regression models.

Usage

print_with_confint(coefs, df = Inf, exp = FALSE, conf.level = 0.95)

Arguments

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 .

Value

a matrix

Examples


data(datasets::mtcars)
mod   <- lm(mpg ~ disp+hp+wt, data=mtcars)
coefs <- summary(mod)$coefficients[,1:2] 

print_with_confint(coefs)


imbeimainz/IMBEImisc documentation built on Nov. 14, 2024, 1:22 p.m.