Mort1Dsmooth.estimate {MortalitySmooth}R Documentation

Estimate 1D P-splines for a given lambda

Description

This is an internal function of package MortalitySmooth which estimates coefficients and computes diagnostics for penalized B-splines for a given smoothing parameter within the function Mort1Dsmooth.

Usage

Mort1Dsmooth.estimate(x, y, offset, wei, psi2,
                      B, lambda, DtD, a.init,
                      MON, TOL, MAX.IT)

Arguments

x Vector for the abscissa of data.
y Vector of counts response.
offset Vector with an a priori known component (optional).
wei An optional vector of weights to be used in the fitting process.
psi2 Overdispersion parameter.
B B-splines basis.
lambda Smoothing parameter.
DtD Inner product of the difference matrix.
a.init Vector with the initial coefficients.
MON Logical switch indicating if monitoring is required.
TOL The tolerance level in the IWLS algorithm.
MAX.IT The maximum number of iterations.

Details

Internal function used in Mort1Dsmooth for estimating coefficients and computing diagnostics.

Value

A list with components:

a fitted coefficients.
h diagonal of the hat-matrix.
df effective dimension of used degree of freedom.
aic Akaike's Information Criterion.
bic Bayesian Information Criterion.
dev Poisson deviance.
tol tolerance level.

Author(s)

Carlo G Camarda

See Also

Mort1Dsmooth.update, Mort1Dsmooth.


[Package MortalitySmooth version 1.0 Index]