Refer to Chapter 7.1
Proposed model
Within the local polynomial framework, the linear predictor η(a) is approximated locally at one particular value a0 for age by a line (local linear) or a parabola (local quadratic).
The estimator for the k-th derivative of η(a0), for k = 0, 1, …, p (degree of local polynomial) is as followed:
η̂(k)(a0) = k!β̂k(a0)
The estimator for the prevalence at age a0 is then given by
π̂(a0) = g−1{β̂0(a0)}
The estimator for the force of infection at age a0 by assuming p ≥ 1 is as followed
λ̂(a0) = β̂1(a0)δ{β̂0(a0)}
Fitting data
Use plot_gcv()
to show GCV curves for the nearest
neighbor method (left) and constant bandwidth (right).
Use lp_model()
to fit a local estimation by
polynomials.