logistfPrint | R Documentation |
Print nice summaries from objects returned by logistf
.
logistfPrint(fit, digits = 3)
fit |
a fit object returned by |
digits |
number of digits to round to |
There is a lot of raw output from logistf
, and it is not
easy to extract the coefficient table. This function provides
a convenient wrapper to return summaries from logistf
.
A data frame with a row for each predictor and the following columns
coef |
log odds ratio |
exp(coef) |
odds ratio |
lower |
lower confidence bound of odds ratio for specified level |
upper |
upper confidence bound of odds ratio for specified level |
p |
p-value |
Samuel Leung, Derek Chiu
library(logistf)
data(sex2)
fit <- logistf(case ~ age + oc + vic + vicl + vis + dia, data = sex2,
alpha = 0.1)
summary(fit)
## Streamlined summary
logistfPrint(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.