Learn R Programming

⚠️There's a newer version (1.26.0) of this package.Take me there.

logistf

Overview

The package logistf provides a comprehensive tool to facilitate the application of Firth’s modified score procedure in logistic regression analysis.

Installation

# Install logistf from CRAN
install.packages("logistf")

# Or the development version from GitHub:
# install.packages("devtools")
devtools::install_github("georgheinze/logistf")

Usage

The call of the main function of the library follows the structure of the standard functions as lm or glm, requiring a data.frame and a formula for the model specification. The resulting object belongs to the new class logistf, which includes penalized maximum likelihood ('Firth-Logistic'- or 'FL'-type) logistic regression parameters, standard errors, confidence limits, p-values, the value of the maximized penalized log likelihood, the linear predictors, the number of iterations needed to arrive at the maximum and much more. Furthermore, specific methods for the resulting object are supplied. Additionally, a function to plot profiles of the penalized likelihood function and a function to perform penalized likelihood ratio tests have been included. Methods to predict from a model, and the FLIC and FLAC methods to obtain unbiased predictions have been implemented.

data(sex2)
lf <- logistf(formula = case ~ age + oc + vic + vicl + vis + dia, data = sex2)
summary(lf)

Copy Link

Version

Install

install.packages('logistf')

Monthly Downloads

5,299

Version

1.24

License

GPL

Maintainer

Last Published

September 16th, 2020

Functions in logistf (1.24)

PVR.confint

Pseudo Variance Modification of Rubin's Rule
flac

FLAC - Firth's logistic regression with added covariate
flic

FLIC - Firth's logistic regression with intercept correction
logistf.control

Control Parameters for logistf
backward

Backward Elimination/Forward Selection of Model Terms in logistf Models
CLIP.confint

Confidence Intervals after Multiple Imputation: Combination of Likelihood Profiles
logistf

Firth's Bias-Reduced Logistic Regression
add1.logistf

Add or Drop All Possible Single Terms to/from a logistf Model
CLIP.profile

Combine Profile Likelihoods from Imputed-Data Model Fits
plot.logistf.profile

plot Method for logistf Likelihood Profiles
predict.flic

Predict Method for flic Fits
predict.flac

Predict Method for flac Fits
predict.logistf

Predict Method for logistf Fits
sexagg

Urinary Tract Infection in American College Students
logistftest

Penalized likelihood ratio test
profile.logistf

Compute Profile Penalized Likelihood
sex2

Urinary Tract Infection in American College Students
logistpl.control

Control Parameters for logistf Profile Likelihood Confidence Interval Estimation
anova.logistf

Analysis of Penalized Deviance for logistf Models