Consider a competing interpolant and set . At each spline knot, . If its second derivative roughness penalty is infinite there is nothing to prove, so assume . Its absolutely continuous first derivative makes absolutely continuous as well, with defined almost everywhere.
On each knot interval the natural cubic spline has constant third derivative. Integrating by parts once givesThe last term vanishes because is zero at both endpoints. Summing over intervals cancels the interior boundary terms, since and are continuous at the knots. The exterior terms vanish because . Hence . Expanding the square now givesSince , equality requires almost everywhere. Absolute continuity then makes affine. It has at least two distinct zeros because , so . The natural cubic spline is the unique minimizer. This proves the minimum roughness property with absolutely continuous first derivatives, covering the weaker regularity in the question rather than assuming competitors are twice continuously differentiable. The case of two knots is included: the minimizing spline is their straight-line interpolant.
For woman , write for the number of births, for the number with defects, for baseline age, and for exposure. Let be the common marginal defect probability for her births. The first fit is a grouped grouped-binomial logistic regression:It assumes independent women and, conditionally on their covariates, independent births with the same probability within each woman. The supplied birth totals are the binomial denominators; fitting the proportions with weights is equivalent to this grouped-binomial specification. The fitted linear predictor is .
The second fit is a generalized additive model with the same logit link function and the mean specificationThe functions are penalized cubic regression splines with natural boundary conditions. Centering constraints such as separate them from the intercept; the fitted centered intercept is . Their second derivative roughness penalties control complexity.
The call estimates a common scale rather than fixing it at one. Its working variance specification for the counts isEquivalently the variance of is . This is the working moment interpretation of an overdispersed binomial generalized additive model: the code uses binomial deviance for fitting and estimated scale for inference. With , it is not an exact independent-binomial sampling model. Women are still treated as independent groups, but within-woman dependence or unobserved heterogeneity can motivate the extra dispersion. The quasibinomial regression interpretation states what the scaled analysis assumes without inventing a full probability distribution for its counts.
The first model's residual deviance is on residual degrees of freedom, a ratio of about . This is far above the scale expected from a well-fitting dispersion-one grouped binomial regression. It suggests an inadequate mean function, overdispersion, or both. The linear age and exposure restrictions may miss nonlinear associations; the generalized additive model allows those shapes to be estimated through penalized cubic regression splines rather than assumed.
The very small exposure Wald p-value in the first fit suggests an association, but does not establish that a linear logit effect is adequate. Nor does the nonsignificant linear age term exclude every possible nonlinear age effect. Allowing estimated scale also addresses the excessive residual variation, which can arise from clustered data because several births belong to the same woman. The second model's estimated scale confirms that permitting smooth means has not removed all extra variation. The reason to proceed is poor initial fit and possible nonlinear effects, with dispersion-aware inference, not merely the wish to obtain more significant tests. These observational fits alone do not establish causation by the disaster.
The trace of the smoother's influence matrix is its total effective degrees of freedom. Include the unpenalized intercept as well as both centered smooth terms:The
Ref.df entries are for approximate significance calibration and must not be summed to obtain this trace. A consistency check using the generalized cross-validation form and scale estimate gives ; the small difference is explained by rounding in the displayed quantities. The required trace is about .The original PDF's age smooth is nearly flat, its uncertainty band includes zero across the age range, and its approximate p-value is . The exposure smooth is increasing and convex: it is fairly flat at low exposure and rises more steeply at high exposure. Its effective degrees of freedom suggest a modest departure from a straight line, rather than a highly oscillatory relationship.
A suitable simpler model is therefore the grouped quasibinomial regressionwith age omitted and dispersion estimated. A positive quadratic coefficient captures the convex exposure relationship; retaining the linear term respects the usual polynomial hierarchy. This model should be refitted, rather than assigning coefficients from the smooth plot. Compare its residual pattern and dispersion-adjusted fit with the additive model to check that the quadratic approximation is adequate. An exposure-only quadratic logit model is a justified parsimonious candidate, while the graph does not justify a sharp threshold or a zero-dispersion model.
Articles by others on the same topic
There are currently no matching articles.