logistfPrint: Print summaries from logistf

View source: R/logistfPrint.R

logistfPrintR Documentation

Print summaries from logistf

Description

Print nice summaries from objects returned by logistf.

Usage

logistfPrint(fit, digits = 3)

Arguments

fit

a fit object returned by logistf

digits

number of digits to round to

Details

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.

Value

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

Author(s)

Samuel Leung, Derek Chiu

Examples

library(logistf)
data(sex2)
fit <- logistf(case ~ age + oc + vic + vicl + vis + dia, data = sex2,
alpha = 0.1)
summary(fit)

## Streamlined summary
logistfPrint(fit)

TalhoukLab/biostatUtil documentation built on April 14, 2025, 4:15 a.m.