Stasinopoulos 2007 - Distributions and Additive Terms
Summary
The
gamlss.familycatalogue spans 1-4 parameter continuous and discrete distributions with default links; ten additive-term functions (cubic splines, P-splines, loess, fractional polynomials, random effects, …) build the smooth predictors. The P-spline term is a B-spline basis with an -th order difference penalty on coefficients — the same construction used in Bayesian distributional regression.
Overview
Section 1.3 lists the distributions (Tables 1-2); Section 1.4 the smoothers (Table 3). Every family exposes d, p, q, r functions (e.g. dGA, pGA, qGA, rGA for the gamma) and a fitting function that supplies links, first and (approximate) expected second derivatives and starting values.
Main Content
Continuous families (Table 1, selected, with default links )
| Distribution | Name | ||||
|---|---|---|---|---|---|
| normal | NO | identity | log | - | - |
| gamma | GA | log | log | - | - |
| inverse Gaussian | IG | log | log | - | - |
| log-normal | LOGNO | log | log | - | - |
| Weibull | WEI | log | log | - | - |
| Gumbel / reverse Gumbel | GU, RG | identity | log | - | - |
| beta | BE | logit | logit | - | - |
| zero/one-inflated beta | BEINF | logit | logit | log | log |
| Box-Cox Cole-Green (BCCG) | BCCG | identity | log | identity | - |
| Box-Cox power exponential | BCPE | identity | log | identity | log |
| Box-Cox | BCT | identity | log | identity | log |
| Johnson SU | JSU | identity | log | identity | log |
| skew (types 1-5) | ST1-ST5 | identity | log | identity or log | log |
| skew power exponential (1-4) | SEP1-SEP4 | identity | log | identity or log | log |
| sinh-arcsinh | SHASH | identity | log | log | log |
| generalized beta type 2 | GB2 | log | identity | log | log |
Table 1 also includes exponential, exponential Gaussian, generalized gamma, generalized inverse Gaussian, logistic, power exponential, NET, family and zero-adjusted inverse Gaussian.
BCCG = LMS
The BCCG distribution is the Box-Cox transformation model of Cole and Green (1992), also known as the LMS method of centile estimation. BCPE (Rigby and Stasinopoulos 2004) and BCT (2006) generalise it to model both skewness and kurtosis. See Stasinopoulos 2007 - Centile Curves, LMS and Residual Diagnostics.
Discrete families (Table 2)
Poisson PO (log), binomial BI (logit), negative binomial type I/II NBI/NBII (log, log), Poisson inverse Gaussian PIG, Sichel SI/SICHEL (log, log, identity), Delaporte DEL, beta binomial BB (logit, log), zero-inflated Poisson ZIP/ZIP2 (log, logit).
Parameterisations. Several have alternatives, e.g. Weibull: WEI ; WEI2 (proportional hazards); WEI3 has equal to the mean via . Choice affects optimisation: near-orthogonal parameters fit more easily.
Extending the families: (i) write a new gamlss.family (needs the pdf), (ii) truncate (gamlss.tr, gen.trun()), (iii) censor (gamlss.cens, gen.cens()), (iv) mix (gamlss.mx, gamlssMX(), gamlssNP()).
Additive terms (Table 3)
| Function | Term |
|---|---|
cs() | cubic smoothing spline (every distinct is a knot; penalty ; solution is a natural cubic spline) |
vc() | varying coefficient (Hastie and Tibshirani 1993) |
ps() | penalized (P-)spline (Eilers and Marx 1996) |
lo() | loess (only term allowing smoothing in several variables) |
fp() | fractional polynomials (Royston and Altman 1994), powers from |
pp() | power polynomials, powers estimated non-linearly (experimental) |
nl() | non-linear fit (gamlss.nl) |
random(), ra(), rc() | random effects, augmented-least-squares version, random coefficient |
P-spline term
For a distribution parameter , , where is the B-spline basis (degree
degree) on knots (ps.intervals, equally spaced) and satisfies , equivalently with . is the -th order difference matrix (order). Smoothness is set bydf(equivalent degrees of freedom) orlambda.
Degrees of freedom of smoothers are counted beyond the constant and linear part: cs(x, df=3) gives 5 total df; this differs from gam::s(x, df=4).
Backfitting convention. The linear part of an additive term is placed in the linear design matrix and the smoother is fitted as a deviation (modified backfitting). Output components per parameter: mu.s (smoother fits), mu.var, mu.df, mu.lambda, mu.coefSmo. Random-effect terms estimate given ; hyperparameters come from Rigby and Stasinopoulos (2005, App. A) or from gamlssNP() with Gaussian quadrature.
Examples
Why not a polynomial? (CD4 data)
A degree-7 polynomial minimised both AIC and SBC for the CD4 mean but looked “wobbly at the end of the age range” (p. 19) — typical polynomial behaviour. The penalized/smoothing-spline alternatives are in Stasinopoulos 2007 - Lice, CD4 and Claims Examples.
Connections
- Hilbert-space/GP alternatives to P-splines: Hilbert Space Gaussian Processes.
- Count families (NBI, PIG, Sichel, ZIP) vs Generalized Linear Models.
See Also
Stasinopoulos 2007 - GAMLSS Model Framework, Stasinopoulos 2007 - Bayesian P-Splines and Distributional Regression in PyMC