Learn R Programming

Greg (version 1.2)

prCaDefaultGetCoefAndCI: Get the confidence intervals

Description

These are functions that get the estimates and the confidence intervals. Due to package differences there are some local modifications.

Usage

prCaDefaultGetCoefAndCI(model, level, skip_intercept = FALSE)
prCaRmsGetCoefAndCI(model, level, vn, data)

Arguments

model
The regression model
level
The confidence interval level
skip_intercept
If the model should remove the intercept from the returned values.
vn
The variable names
data
The data set

Value

matrix Returns a n x 3 matrix where the n equals the number of variables.

The default

Gets the estimate and confidence interval using the confint and coef.

The rms

The rms-package does not have confint implemented and it is therefore a better option to go through the summary function (rms:::summary.rms). Infortunately skip intercept is not an option as the summary doesn't include the intercept for the rms regression outputs