pridit: pridit: Principal Component Analysis Applied to Ridit Scoring

View source: R/pridit.R

priditR Documentation

pridit: Principal Component Analysis Applied to Ridit Scoring

Description

The pridit package provides functions for implementing the PRIDIT (Principal Component Analysis applied to RIDITs) scoring system.

A single entry-point that runs the full PRIDIT pipeline—ridit scoring, weight estimation, and composite scoring—and returns a classed object with print, summary, autoplot, and coef methods.

Usage

pridit(data, sign_correction = TRUE)

Arguments

data

A data frame. The first column is treated as the observation identifier; all remaining columns must be numeric indicators.

sign_correction

Logical (default TRUE). If the mean weight is negative—indicating PCA chose the opposite sign convention—all weights and scores are negated so that larger positive scores correspond to the dominant high-value direction.

Details

PRIDIT (Principal Component Analysis applied to RIDITs) was introduced by Brockett et al. (2002) for insurance fraud detection and applied to hospital quality measurement by Lieberthal (2008). Its key properties are:

  1. No parametric assumptions about the data-generating process.

  2. No prior knowledge of indicator direction is required; weight signs are determined entirely by the data.

  3. Each indicator weight is interpretable as its contribution to the dominant latent factor.

Value

An object of class "pridit", a list with components:

scores

Data frame with columns id and PRIDITscore, sorted descending.

weights

Named numeric vector of PRIDIT weights.

eigenvalue

Largest eigenvalue of the ridit cross-product matrix (used for score normalisation).

eigenvalue_ratio

Ratio of the first to the second eigenvalue; large values support the single-factor interpretation.

n

Number of observations.

p

Number of indicators.

call

Matched call.

Author(s)

Maintainer: Robert D. Lieberthal rlieberthal@gmail.com

Authors:

References

Brockett, P. L., Derrig, R. A., Golden, L. L., Levine, A., & Alpert, M. (2002). Fraud classification using principal component analysis of RIDITs. Journal of Risk and Insurance, 69(3), 341–371.

Lieberthal, R. D. (2008). Hospital quality: A PRIDIT approach. Health Services Research, 43(3), 988–1005.

Lieberthal, R. D., & Comer, D. M. (2013). What are the characteristics that explain hospital quality? A longitudinal PRIDIT approach. Risk Management and Insurance Review, 17(1), 17–35.

See Also

Useful links:

pridit_boot, pridit_longitudinal, step_pridit

Examples

dat <- data.frame(
  id = letters[1:10],
  x1 = runif(10),
  x2 = runif(10),
  x3 = runif(10)
)
fit <- pridit(dat)
fit
summary(fit)


pridit documentation built on May 31, 2026, 5:07 p.m.