Learn R Programming

rms

Regression Modeling Strategies

Current Goals

  • Implement estimation and prediction methods for the Bayesian partial proportional odds model blrm function

Web Sites

To Do

  • Fix survplot so that explicitly named adjust-to values are still in subtitles. See tests/cph2.s.
  • Fix fit.mult.impute to average sigma^2 and then take square root, instead of averaging sigma
  • Implement user-added distributions in psm - see https://github.com/harrelfe/rms/issues/41

Copy Link

Version

Install

install.packages('rms')

Monthly Downloads

32,104

Version

8.2-1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Frank Harrell Jr

Last Published

November 1st, 2026

Functions in rms (8.2-1)

Ocens

Censored Ordinal Variable
LRupdate

LRupdate
Predict

Compute Predicted Values and Confidence Limits
adapt_orm

Adaptive orm Fit For a Single Continuous Predictor
bootBCa

BCa Bootstrap on Existing Bootstrap Replicates
Punits

Prepare units for Printing and Plotting
as.data.frame.Ocens

Convert `Ocens` Object to Data Frame to Facilitate Subset
Xcontrast

Xcontrast
Rq

rms Package Interface to quantreg Package
bootcov

Bootstrap Covariance and Distribution for Regression Coefficients
bj

Buckley-James Multiple Regression Model
bplot

3-D Plots Showing Effects of Two Continuous Predictors in a Regression Model Fit
anova.rms

Analysis of Variance (Wald, LR, and F Statistics)
cluster

cluster
gendata

Generate Data Frame with Predictor Combinations
corFloorExp

Floor-plus-exponential-decay correlation structure for `nlme`
contrast.rms

General Contrasts of Regression Coefficients
fastbw

Fast Backward Variable Selection
cph

Cox Proportional Hazards Model and Extensions
gIndex

Calculate Total and Partial g-indexes for an rms Fit
datadist

Distribution Summaries for Predictor Variables
cr.setup

Continuation Ratio Ordinal Logistic Setup
calibrate

Resampling Model Calibration
intCalibration

Check Parallelism Assumption of Ordinal Semiparametric Models
is.na.Ocens

is.na Method for Ocens Objects
groupkm

Kaplan-Meier Estimates vs. a Continuous Variable
infoMxop

Operate on Information Matrices
ggplot.npsurv

Title Plot npsurv Nonparametric Survival Curves Using ggplot2
importedexported

Exported Functions That Were Imported From Other Packages
ie.setup

Intervening Event Setup
hazard.ratio.plot

Hazard Ratio Plot
impactPO

Impact of Proportional Odds Assumpton
ggplot.Predict

Plot Effects of Variables Estimated by a Regression Model Fit Using ggplot2
lrm

Logistic Regression Model
ordESS

ordESS
mix_re

mix_re
npsurv

Nonparametric Survival Estimates for Censored Data
ols

Linear Model Estimation Using Ordinary Least Squares
matinv

Total and Partial Matrix Inversion using Gauss-Jordan Sweep Operator
nomogram

Draw a Nomogram Representing a Regression Fit
latexrms

LaTeX Representation of a Fitted Model
latex.cph

LaTeX Representation of a Fitted Cox Model
lrm.fit

lrm.fit
ordParallel

Check Parallelism Assumption of Ordinal Semiparametric Models
plotp.Predict

Plot Effects of Variables Estimated by a Regression Model Fit Using plotly
plotIntercepts

Plot Intercepts
plot.contrast.rms

plot.contrast.rms
plot.rexVar

plot.rexVar
plot.xmean.ordinaly

Plot Mean X vs. Ordinal Y
orm.fit

Ordinal Regression Model Fitter
plot.Predict

Plot Effects of Variables Estimated by a Regression Model Fit
pentrace

Trace AIC and BIC vs. Penalty
orm

Ordinal Regression Model
print.impactPO

Print Result from impactPO
pphsm

Parametric Proportional Hazards form of AFT Models
poma

Examine proportional odds and parallelism assumptions of `orm` and `lrm` model fits.
print.Glm

print.glm
print.Ocens

print Method for Ocens Objects
print.cph

Print cph Results
print.ols

Print ols
predab.resample

Predictive Ability using Resampling
predict.lrm

Predicted Values for Binary and Ordinal Logistic Models
predictrms

Predicted Values from Model Fit
prmiInfo

prmiInfo
processMI.fit.mult.impute

processMI.fit.mult.impute
residuals.Glm

residuals.Glm
residuals.lrm

Residuals from an lrm or orm Fit
print.rexVar

print.rexVar
processMI

processMI
recode2integer

recode2integer
residuals.ols

Residuals for ols
residuals.cph

Residuals for a cph Fit
psm

Parametric Survival Model
rexVar

rexVar
[.Ocens

Ocens
rmsMisc

Miscellaneous Design Attributes and Utility Functions
rms-internal

Internal rms functions
setPb

Progress Bar for Simulations
specs.rms

rms Specifications for Models
sensuc

Sensitivity to Unmeasured Covariables
rms

rms Methods and Generic Functions
rms.trans

rms Special Transformation Functions
robcov

Robust Covariance Matrix Estimates
survest.psm

Parametric Survival Estimates
survplot.orm

Title Survival Curve Plotting
survest.orm

Title survest.orm
survfit.cph

Cox Predicted Survival
survest.cph

Cox Survival Estimates
summary.rms

Summary of Effects in Model
val.prob

Validate Predicted Probabilities
validate

Resampling Validation of a Fitted Model's Indexes of Fit
survplot

Plot Survival Curves and Hazard Functions
val.surv

Validate Predicted Probabilities Against Observed Survival Times
validate.cph

Validation of a Fitted Cox or Parametric Survival Model's Indexes of Fit
validate.ols

Validation of an Ordinary Linear Model
rmsOverview

Overview of rms Package
validate.lrm

Resampling Validation of a Logistic or Ordinal Regression Model
validate.rpart

Dxy and Mean Squared Error by Cross-validating a Tree Sequence
vif

Variance Inflation Factors
which.influence

Which Observations are Influential
validate.Rq

Validation of a Quantile Regression Model
ExProb

Function Generators For Exceedance and Survival Probabilities
Glm

rms Version of glm
Ocens2Surv

Ocens2Surv
Olinks

Likehood-Based Statistics for Other Links for orm Fits
Function

Compose an S Function to Compute X beta from a Fit
Ocens2ord

Recode Censored Ordinal Variable
Gls

Fit Linear Model Using Generalized Least Squares