Learn R Programming

Accompanies the book Nonparametric Statistical Methods Using R, Second Edition by Kloke and McKean. Includes methods, datasets, and random number generation useful for the study of robust and/or nonparametric statistics.

Installation

  • npsm may be installed from

Note: The github versions may represent developmental versions.

  • If using in conjunction with a read of or course based off of the book mentioned above, then it would be recommended for most to install all dependencies, up to and including, Suggests.

Fine Print

As with R itself, npsm is free software and comes with ABSOLUTELY NO WARRANTY.

Copy Link

Version

Install

install.packages('npsm')

Monthly Downloads

295

Version

2.0.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

John Kloke

Last Published

July 23rd, 2025

Functions in npsm (2.0.1)

hodges_lehmann.ci

Hodges-Lehmann type estimation and confidence intervals.
getxact

Design Function for Robust Analysis of Covariance
getxact2

Design Function for Robust Analysis of Covariance
plot.knn_cv

plot function for knn_cv
hogg.test

Hogg's Adaptive Test
hemorrhage

Hemorrhage data from Dupont.
fp.test

Placement Test for the Behrens-Fisher problem.
internal

Internal Functions
hodgkins

Relapse-Free Survival Times for Hodgkin's Disease Patients
onecovaheter

Robust Analysis of Covariance under Heterogeneous Slopes
onecovahomog

Robust Analysis of Covariance under Heterogeneous Slopes
vanElteren.test

vanElteren test for stratified analysis
weather

January Weather Data for Kalamazoo
firstbase

Rounding First Base.
cloud

Cloud Dewpoint
kancovarown

routine used in the ANCOVA table obtained by kancova
cor.boot.ci

Confidence interval for a correlation based on a bootstrap.
onecova

Robust Analysis of Covariance under Heterogeneous Slopes
kancova

Robust Analysis of Covariance under Heterogeneous Slopes for a k-way layout
gehan.test

Gehan generalization the Wilcoxon two-sample test
jonckheere

Jonckheere's Test for Ordered Alternatives
knn_cv

Train a k nearest neighbors (knn) classifer via cross validation (cv).
rlaplace

Random Laplace.
polydeg

Degree of Polynomial Determination
prostate

DES for treatment of prostate cancer.
mood.ci

Mood Median Confidence Interval
poly

A Simulated Polynomial Data Set.
print

Internal print functions
rcn

random contaminated normal deviates
latour

Chateau Latour Wine Data
rcnx

Fat-Finger Error Contaminated Normal Deviates
signtest_pvalue

p-value for a one sample sign test
turtle

Turtle Data
qhic

qhic
place

Placements.
plank

Plank data
rs

Simulated Regression Model
sim_class2

A simulated classification example with two variables and two classes (labels).
huitema496

Analysis of Covarince Data Set
seinfeld

Seinfeld --- the sitcom --- viewership counts by episode
insulation

Insulating Fluid Data
speed

Predict top speed based on miles per gallon
quail2

Quail from a two-factor experiment.
sievers

Doksum and Sievers rat data
wilson.ci

Wilson (score) confidence interval for a population proportion.
simon

Simon (the memory game) dataset
rank.test

General scores rank test for two sample problem
sincos

Sine Cosine Model
baseball_players1000

Career Information for a Random Sample of 1000 Baseball Players
centerx

Center Matrix
fkk.test

k-Sample version of the Fligner-Kileen test for homogeneous scales.
fk.test

Two-sample Fligner-Kileen test for homogeneous scales.
SCUD

Cyclone Data
aligned.test

Aligned Rank Test
HoggsQs

Hogg's Q1 and Q2.
acov231

Analysis of Covariance Example for a two by three two-way design
energy

Energy as a Function of temperature difference.
bb2010

Batting statistics for the 2010 baseball season.
blood.plasma

Blood plasma measurements related to total triglyceride level
brewers1982

Basic Summaries of Boxscores for the Milwaukee Brewers 1982 Season
cancertrt

Survival time based on two treatments