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

30,362

Version

8.1-0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Frank Harrell Jr

Last Published

October 14th, 2025

Functions in rms (8.1-0)

ExProb

Function Generators For Exceedance and Survival Probabilities
Function

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

Ocens2Surv
Ocens2ord

Recode Censored Ordinal Variable
Glm

rms Version of glm
Gls

Fit Linear Model Using Generalized Least Squares
Predict

Compute Predicted Values and Confidence Limits
Olinks

Likehood-Based Statistics for Other Links for orm Fits
LRupdate

LRupdate
Ocens

Censored Ordinal Variable
Xcontrast

Xcontrast
adapt_orm

Adaptive orm Fit For a Single Continuous Predictor
Rq

rms Package Interface to quantreg Package
Punits

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

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

BCa Bootstrap on Existing Bootstrap Replicates
anova.rms

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

3-D Plots Showing Effects of Two Continuous Predictors in a Regression Model Fit
bj

Buckley-James Multiple Regression Model
bootcov

Bootstrap Covariance and Distribution for Regression Coefficients
calibrate

Resampling Model Calibration
ggplot.npsurv

Title Plot npsurv Nonparametric Survival Curves Using ggplot2
datadist

Distribution Summaries for Predictor Variables
cr.setup

Continuation Ratio Ordinal Logistic Setup
gendata

Generate Data Frame with Predictor Combinations
contrast.rms

General Contrasts of Regression Coefficients
cph

Cox Proportional Hazards Model and Extensions
ggplot.Predict

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

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

Fast Backward Variable Selection
importedexported

Exported Functions That Were Imported From Other Packages
ie.setup

Intervening Event Setup
latexrms

LaTeX Representation of a Fitted Model
infoMxop

Operate on Information Matrices
is.na.Ocens

is.na Method for Ocens Objects
intCalibration

Check Parallelism Assumption of Ordinal Semiparametric Models
groupkm

Kaplan-Meier Estimates vs. a Continuous Variable
latex.cph

LaTeX Representation of a Fitted Cox Model
impactPO

Impact of Proportional Odds Assumpton
hazard.ratio.plot

Hazard Ratio Plot
orm.fit

Ordinal Regression Model Fitter
matinv

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

Logistic Regression Model
lrm.fit

lrm.fit
orm

Ordinal Regression Model
nomogram

Draw a Nomogram Representing a Regression Fit
npsurv

Nonparametric Survival Estimates for Censored Data
ols

Linear Model Estimation Using Ordinary Least Squares
ordParallel

Check Parallelism Assumption of Ordinal Semiparametric Models
ordESS

ordESS
predab.resample

Predictive Ability using Resampling
plotIntercepts

Plot Intercepts
poma

Examine proportional odds and parallelism assumptions of `orm` and `lrm` model fits.
plot.contrast.rms

plot.contrast.rms
plot.rexVar

plot.rexVar
pentrace

Trace AIC and BIC vs. Penalty
plotp.Predict

Plot Effects of Variables Estimated by a Regression Model Fit Using plotly
plot.xmean.ordinaly

Plot Mean X vs. Ordinal Y
pphsm

Parametric Proportional Hazards form of AFT Models
plot.Predict

Plot Effects of Variables Estimated by a Regression Model Fit
prmiInfo

prmiInfo
print.Ocens

print Method for Ocens Objects
print.cph

Print cph Results
print.Glm

print.glm
print.impactPO

Print Result from impactPO
processMI

processMI
print.ols

Print ols
predict.lrm

Predicted Values for Binary and Ordinal Logistic Models
print.rexVar

print.rexVar
predictrms

Predicted Values from Model Fit
rms-internal

Internal rms functions
recode2integer

recode2integer
processMI.fit.mult.impute

processMI.fit.mult.impute
rexVar

rexVar
residuals.Glm

residuals.Glm
rms

rms Methods and Generic Functions
residuals.ols

Residuals for ols
psm

Parametric Survival Model
residuals.cph

Residuals for a cph Fit
residuals.lrm

Residuals from an lrm or orm Fit
rms.trans

rms Special Transformation Functions
rmsMisc

Miscellaneous Design Attributes and Utility Functions
robcov

Robust Covariance Matrix Estimates
survest.cph

Cox Survival Estimates
survest.orm

Title survest.orm
[.Ocens

Ocens
setPb

Progress Bar for Simulations
specs.rms

rms Specifications for Models
sensuc

Sensitivity to Unmeasured Covariables
summary.rms

Summary of Effects in Model
survfit.cph

Cox Predicted Survival
validate.lrm

Resampling Validation of a Logistic or Ordinal Regression Model
validate

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

Title Survival Curve Plotting
validate.cph

Validation of a Fitted Cox or Parametric Survival Model's Indexes of Fit
survest.psm

Parametric Survival Estimates
validate.Rq

Validation of a Quantile Regression Model
val.surv

Validate Predicted Probabilities Against Observed Survival Times
survplot

Plot Survival Curves and Hazard Functions
val.prob

Validate Predicted Probabilities
rmsOverview

Overview of rms Package
which.influence

Which Observations are Influential
validate.ols

Validation of an Ordinary Linear Model
vif

Variance Inflation Factors
validate.rpart

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