Practical Smoothing with P-Splines
Compute a B-spline basis matrix
Translated number vector to bin index.
Compute a circular B-spline basis matrix
Compute a second order circular differencing matrix
Clone a B-spline basis for new x
Create a matrix of counts.
Deviance calculation for GLM P-spline fitting.
Ethanol data
Fit amplitude coeffcients in the bundle model for expectiles
Fit asymmetry parameters in the expectile bundle model
Compute a 2D histogram
Smooth a 2D histogram
Inverse link function, used for GLM fitting.
Custom color ramp.
Themeing functions used to unify ggplot features
Custom theme for ggplot
Joys of P-Splines
Bayesian density estimation
LIDAR data
Fit a composite link model
Plotting function for ps2DGLM
Plotting function for ps2DNormal
Plotting function for ps2DSignal
Plotting function for psNormal
, psPoisson
, psBinomial
Plotting function for psSignal
Plotting function for psVCSignal
Plotting function for sim_psr
Plotting function for sim_vcpsr
Predict function for ps2DGLM
Predict function for ps2DNormal
Predict function for ps2DSignal
Predict function for psNormal
, psBinomial
, psPoisson
Predict function for psSignal
Predict function for psVCSignal
Predict function for sim_psr
Predict function for sim_vcpsr
Partial derivative two-dimensional smoothing scattered (normal) data u...
Two-dimensional smoothing of scattered normal or non-normal (GLM) resp...
Two-dimensional smoothing scattered (normal) data using P-splines.
Two-dimensional penalized signal regression using P-splines.
Smoothing scattered binomial data using P-splines.
Derivative for a P-spline fit of scattered (normal) data.
Smoothing scattered (normal) data using P-splines.
P-spline checking algorithm for the GLM.
P-spline fitting algorithm for the GLM.
P-spline 2D tensor product checking algorithm for the GLM.
Smoothing scattered Poisson data using P-splines.
Smooth signal (multivariate calibration) regression using P-splines.
Varying-coefficient penalized signal regression using P-splines.
Compute the row tensor product of two matrices
Save a plot as a PDF file.
Prepare graphics layout for multiple panels
Open a graphics window.
Single-Index signal regression using P-splines
Varying-coefficient single-index signal regression using tensor P-spli...
Two-dimensional P-spline smoothing
Compute a sparse B-spline basis on evenly spaced knots
Compute a truncated power function.
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).