Derv2 function

Calculating the second order derivative with and without penalty

Calculating the second order derivative with and without penalty

Calculating the second order derivative of the likelihood function of the pendensity approach w.r.t. the parameter beta. Thereby, for later use, the program returns the second order derivative with and without the penalty.

Derv2(penden.env, lambda0)

Details

We approximate the second order derivative in this approach with the negative fisher information.

J(β)=2l(β)β βTi=1nsi(β)siT(β). J(\beta)= - \frac{\partial^2 l(\beta)}{\partial \beta \ \partial \beta^T} \approx \sum_{i=1}^n s_i(\beta) s_i^T(\beta) .%\eqn{J(beta)= partial^2 l(beta) / (partial(beta) partial(beta)) = sum(s[i](beta) s[i]^T(beta))}

Therefore we construct the second order derivative of the i-th observation w.r.t. beta with the outer product of the matrix Derv1.cal and the i-th row of the matrix Derv1.cal.

The penalty is computed as

λDm \lambda D_m%\eqn{ lambda Dm}

.

Arguments

  • penden.env: Containing all information, environment of pendensity()
  • lambda0: smoothing parameter lambda

Returns

  • Derv2.pen: second order derivative w.r.t. beta with penalty

  • Derv2.cal: second order derivative w.r.t. beta without penalty. Needed for calculating of e.g. AIC.

Author(s)

Christian Schellhase cschellhase@wiwi.uni-bielefeld.de

References

Density Estimation with a Penalized Mixture Approach, Schellhase C. and Kauermann G. (2012), Computational Statistics 27 (4), p. 757-777.

  • Maintainer: Christian Schellhase
  • License: GPL (>= 2)
  • Last published: 2019-04-07

Useful links