Estimation of P-splines using an efficient local maximum likelihood approach to automatically select the smoothing parameter. According to the inventors of P-splines, pb stands for "penalized beta" splines or "Paul and Brian".
Usage
pb(x, k = 20, ...)
Arguments
x
The variable that should be used for estimation.
k
The dimension of the B-spline basis to represent the smooth term.
…
Further arguments passed to function s.
Details
Function pb() is an internal wrapper function that calls s to set up a smooth specification object that can be used for model fitting with gamlss2. Using pb(), an efficient local maximum likelihood approach is used to estimate the smoothing parameter. See the reference for details.
Value
The function returns a smooth specification object of class “ps.smooth.spec”, see also smooth.construct.ps.smooth.spec.
References
Eilers PHC, Marx BD (1996). “Flexible Smoothing with B-Splines and Penalties.” Statistical Science, 11(2), 89–121. doi:10.1214/ss/1038425655
Rigby RA, Stasinopoulos DM (2014). “Automatic Smoothing Parameter Selection in GAMLSS with an Application to Centile Estimation.” Statistical Methods in Medical Research, 23(4), 318–332. doi:10.1177/0962280212473302
See Also
gamlss2, smooth.construct.ps.smooth.spec
Examples
library("gamlss2")## load head circumference datadata("dbhh", package ="gamlss.data")## specify the model Formulaf <- head ~pb(age) |pb(age) |pb(age) |pb(age)## estimate modelb <-gamlss2(f, data = dbhh, family = BCT)
GAMLSS-RS iteration 1: Global Deviance = 26377.8229 eps = 0.390162
GAMLSS-RS iteration 2: Global Deviance = 26205.3586 eps = 0.006538
GAMLSS-RS iteration 3: Global Deviance = 26202.541 eps = 0.000107
GAMLSS-RS iteration 4: Global Deviance = 26202.1755 eps = 0.000013
GAMLSS-RS iteration 5: Global Deviance = 26202.0501 eps = 0.000004
## visualize estimated effectsplot(b, which ="effects")