Learn R Programming

⚠️There's a newer version (0.2.0) of this package.Take me there.

JOPS (version 0.1.19)

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.1.19

License

GPL-2 | GPL-3

Maintainer

Paul Eilers

Last Published

September 5th, 2023

Functions in JOPS (0.1.19)

JOPS_theme

Custom theme for ggplot
LAPS_dens

Bayesian density estimation
bbase

Compute a B-spline basis matrix
Suicide

Suicide Data Set
SpATS.nogeno

Two-dimensional P-spline smoothing
binit

Translated number vector to bin index.
Varstar

Brightness of a variable star.
Mixture

Mixture Data
Sugar

Sugar Processing Data
Woodsurf

Profile of a sanded piece of wood.
count2d

Create a matrix of counts.
fitampl

Fit amplitude coeffcients in the bundle model for expectiles
cbase

Compute a circular B-spline basis matrix
hist2d

Compute a 2D histogram
cdiff

Compute a second order circular differencing matrix
bone_data

Spinal bone relative mineral density
dev_calc

Deviance calculation for GLM P-spline fitting.
hist2dsm

Smooth a 2D histogram
plot.ps2dsignal

Plotting function for ps2DSignal
plot.pspfit

Plotting function for psNormal, psPoisson, psBinomial
fitasy

Fit asymmetry parameters in the expectile bundle model
plot.pssignal

Plotting function for psSignal
plot.psvcsignal

Plotting function for psVCSignal
clone_base

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

Plotting function for ps2DNormal
plot.ps2dglm

Plotting function for ps2DGLM
predict.ps2dsignal

Predict function for ps2DSignal
predict.pspfit

Predict function for psNormal, psBinomial, psPoisson
predict.ps2dnormal

Predict function for ps2DNormal
predict.ps2dglm

Predict function for ps2DGLM
indiumoxide

An X-ray diffractogram.
inverse_link

Inverse link function, used for GLM fitting.
plot.simvcpsr

Plotting function for sim_vcpsr
predict.simvcpsr

Predict function for sim_vcpsr
plot.simpsr

Plotting function for sim_psr
predict.simpsr

Predict function for sim_psr
ova

Ovarian cancer data
pclm

Fit a composite link model
predict.pssignal

Predict function for psSignal
predict.psvcsignal

Predict function for psVCSignal
psBinomial

Smoothing scattered binomial data using P-splines.
psSignal

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

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

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

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

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

Smoothing scattered Poisson data using P-splines.
ps2D_PartialDeriv

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

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

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

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

P-spline checking algorithm for the GLM.
pspline_fitter

P-spline fitting algorithm for the GLM.
set_window

Open a graphics window.
set_panels

Prepare graphics layout for multiple panels
sim_vcpsr

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

Single-Index signal regression using P-splines
rowtens

Compute the row tensor product of two matrices
psVCSignal

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

Save a plot as a PDF file.
spbase

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

Compute a truncated power function.
JOPS_point

Themeing functions used to unify ggplot features
Greece_deaths

Deaths in Greece in 1960.
JOPS_colors

Custom color ramp.
JOPS

Joys of P-Splines
CGHsim

Simulation of CGH data
Complaints

Environmental complaints from the Rijnomond area of The Netherlands
Disks

Prices of hard disk drives
Hepatitis

Prevalence of Hepatitis among a sample of Bulgarian males.
ECG

A section of an ECG (electrocardiogram)
G519C18

Chromosome G519C18 data