Learn R Programming

JOPS (version 0.2.0)

Practical Smoothing with P-Splines

Description

Functions and data to reproduce all plots in the book "Practical Smoothing. The Joys of P-splines" by Paul H.C. Eilers and Brian D. Marx (2021, ISBN:978-1108482950).

Copy Link

Version

Install

install.packages('JOPS')

Monthly Downloads

346

Version

0.2.0

License

GPL-2 | GPL-3

Maintainer

Paul Eilers

Last Published

April 29th, 2025

Functions in JOPS (0.2.0)

Mixture

Mixture Data
LAPS_dens

Bayesian density estimation
JOPS_theme

Custom theme for ggplot
binit

Translated number vector to bin index.
fitasy

Fit asymmetry parameters in the expectile bundle model
Woodsurf

Profile of a sanded piece of wood.
Varstar

Brightness of a variable star.
count2d

Create a matrix of counts.
dev_calc

Deviance calculation for GLM P-spline fitting.
fitampl

Fit amplitude coeffcients in the bundle model for expectiles
hist2dsm

Smooth a 2D histogram
ethanol

Ethanol data
plot.ps2dsignal

Plotting function for ps2DSignal
plot.ps2dglm

Plotting function for ps2DGLM
plot.ps2dnormal

Plotting function for ps2DNormal
indiumoxide

An X-ray diffractogram.
inverse_link

Inverse link function, used for GLM fitting.
hist2d

Compute a 2D histogram
lidar

LIDAR data
pclm

Fit a composite link model
bone_data

Spinal bone relative mineral density
predict.pssignal

Predict function for psSignal
cbase

Compute a circular B-spline basis matrix
plot.pssignal

Plotting function for psSignal
plot.simpsr

Plotting function for sim_psr
plot.simvcpsr

Plotting function for sim_vcpsr
ova

Ovarian cancer data
plot.pspfit

Plotting function for psNormal, psPoisson, psBinomial
predict.psvcsignal

Predict function for psVCSignal
cdiff

Compute a second order circular differencing matrix
predict.ps2dglm

Predict function for ps2DGLM
clone_base

Clone a B-spline basis for new x
plot.psvcsignal

Plotting function for psVCSignal
predict.ps2dsignal

Predict function for ps2DSignal
predict.ps2dnormal

Predict function for ps2DNormal
psNormal_Deriv

Derivative for a P-spline fit of scattered (normal) data.
predict.simvcpsr

Predict function for sim_vcpsr
psPoisson

Smoothing scattered Poisson data using P-splines.
predict.pspfit

Predict function for psNormal, psBinomial, psPoisson
predict.simpsr

Predict function for sim_psr
psBinomial

Smoothing scattered binomial data using P-splines.
psNormal

Smoothing scattered (normal) data using P-splines.
rowtens

Compute the row tensor product of two matrices
save_PDF

Save a plot as a PDF file.
ps2DNormal

Two-dimensional smoothing scattered (normal) data using P-splines.
ps2DGLM

Two-dimensional smoothing of scattered normal or non-normal (GLM) responses using tensor product P-splines.
psSignal

Smooth signal (multivariate calibration) regression using P-splines.
psVCSignal

Varying-coefficient penalized signal regression using P-splines.
ps2DSignal

Two-dimensional penalized signal regression using P-splines.
pspline2d_checker

P-spline 2D tensor product checking algorithm for the GLM.
ps2D_PartialDeriv

Partial derivative two-dimensional smoothing scattered (normal) data using P-splines.
sim_vcpsr

Varying-coefficient single-index signal regression using tensor P-splines.
sim_psr

Single-Index signal regression using P-splines
tpower

Compute a truncated power function.
set_panels

Prepare graphics layout for multiple panels
set_window

Open a graphics window.
spbase

Compute a sparse B-spline basis on evenly spaced knots
pspline_checker

P-spline checking algorithm for the GLM.
rdw

Observations on the widths of red blood cell distributions (RDW).
pspline_fitter

P-spline fitting algorithm for the GLM.
G519C18

Chromosome G519C18 data
JOPS_colors

Custom color ramp.
JOPS_point

Themeing functions used to unify ggplot features
Disks

Prices of hard disk drives
JOPS

Joys of P-Splines
SpATS.nogeno

Two-dimensional P-spline smoothing
CGHsim

Simulation of CGH data
Hepatitis

Prevalence of Hepatitis among a sample of Bulgarian males.
Greece_deaths

Deaths in Greece in 1960.
Sugar

Sugar Processing Data
Complaints

Environmental complaints from the Rijnomond area of The Netherlands
bbase

Compute a B-spline basis matrix
Suicide

Suicide Data Set
ECG

A section of an ECG (electrocardiogram)