Related Experiment Video
Updated: Jan 29, 2026

A User-friendly and Powerful R Analysis of Large-scale Datasets
Published on: November 4, 2025
Validation of an algorithm for identifying MS cases in administrative health claims datasets
William J Culpepper1, Ruth Ann Marrie2, Annette Langer-Gould2
1From the Department of Veterans Affairs Post Deployment Health Services (W.J.C., M.T.W.), Multiple Sclerosis Center of Excellence; University of Maryland (W.J.C.), Baltimore; Departments of Internal Medicine and Community Health Sciences (R.A.M., S.L.), Max Rady College of Medicine, Rady Faculty of Health Sciences, University of Manitoba, Winnipeg, Canada; Neurology Department (A.L.-G., L.H.C.), Kaiser Permanente Southern California, Los Angeles; Georgetown University School of Medicine (M.T.W.), Washington, DC; University of Colorado (J.C.), Denver; Stanford University School of Medicine (L.M.N.), CA; McKing Consulting Corp (W.E.K., L.W.), Atlanta, GA; Faculty of Medicine (Neurology) and Centre for Brain Health (H.T.), University of British Columbia, Vancouver; College of Pharmacy and Nutrition (C.E.), University of Saskatchewan; Health Quality Council (Saskatchewan) (S.Y.), Saskatoon, Canada; and National Multiple Sclerosis Society (N.G.L.), New York, NY. William.Culpepper@va.gov.
Objective:
To develop a valid algorithm for identifying multiple sclerosis (MS) cases in administrative health claims (AHC) datasets.
Methods:
We used 4 AHC datasets from the Veterans Administration (VA), Kaiser Permanente Southern California (KPSC), Manitoba (Canada), and Saskatchewan (Canada). In the VA, KPSC, and Manitoba, we tested the performance of candidate algorithms based on inpatient, outpatient, and disease-modifying therapy (DMT) claims compared to medical records review using sensitivity, specificity, positive and negative predictive values, and interrater reliability (Youden J statistic) both overall and stratified by sex and age. In Saskatchewan, we tested the algorithms in a cohort randomly selected from the general population.
Results:
The preferred algorithm required ≥3 MS-related claims from any combination of inpatient, outpatient, or DMT claims within a 1-year time period; a 2-year time period provided little gain in performance. Algorithms including DMT claims performed better than those that did not. Sensitivity (86.6%-96.0%), specificity (66.7%-99.0%), positive predictive value (95.4%-99.0%), and interrater reliability (Youden J = 0.60-0.92) were generally stable across datasets and across strata. Some variation in performance in the stratified analyses was observed but largely reflected changes in the composition of the strata. In Saskatchewan, the preferred algorithm had a sensitivity of 96%, specificity of 99%, positive predictive value of 99%, and negative predictive value of 96%.
Conclusions:
The performance of each algorithm was remarkably consistent across datasets. The preferred algorithm required ≥3 MS-related claims from any combination of inpatient, outpatient, or DMT use within 1 year. We recommend this algorithm as the standard AHC case definition for MS.
Related Concept Videos
Testing a Claim about Mean: Known Population SD
Estimating a population mean requires the samples to be distributed normally. The data should be collected from the randomly selected samples having no sampling bias. The sample size needed to be higher than 30, and most importantly, the population standard deviation should be already known.
In most realistic situations, the population standard deviation is often unknown, but in rare circumstances, when it...
Reliability and Validity
Testing a Claim about Population Proportion
There are two methods of testing a claim about a population proportion: (1) Using the sample proportion from the data where a binomial distribution is approximated to the normal distribution and (2) Using the binomial probabilities calculated from the data.
The first method uses normal distribution as an approximation to the binomial distribution. The requirements are as follows: sample size is large...
Testing a Claim about Standard Deviation
The hypothesis testing for the claim of population standard deviation (or variance) requires the data and samples to be random and unbiased. The population distribution also must be normal. There is no specific requirement on the sample size as the estimation is based on the chi-square distribution.
As a first step, the hypothesis (null and alternative) concerning the claim about...
Testing a Claim about Mean: Unknown Population SD
Estimating a population mean requires the samples to be approximately normally distributed. The data should be collected from the randomly selected samples having no sampling bias. There is no specific requirement for sample size. But if the sample size is less than 30, and we don't know the population standard deviation, a different approach is used;...
Trial and Error and Algorithm

