Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

quadDeriv

Gradient and Diagonal of Hesse Matrix of Quadratic Approximation to Log-Likelihood Function L


Description

Computes gradient and diagonal of the Hesse matrix w.r.t. to η of a quadratic approximation to the reparametrized original log-likelihood function

L(φ) = ∑_{i=1}^m w_i φ(x_i) - int_{-∞}^{∞} exp(φ(t)) dt.

where L is parametrized via

η(φ) = (φ_1, (η_1 + ∑_{j=2}^i (x_i-x_{i-1}) η_i)_{i=2}^m).

φ: vector (φ(x_i))_{i=1}^m representing concave, piecewise linear function φ,
η: vector representing successive slopes of φ.

Usage

quadDeriv(dx, w, eta)

Arguments

dx

Vector (0, x_i-x_{i-1})_{i=2}^m.

w

Vector of weights as in activeSetLogCon.

eta

Vector η.

Value

m \times 2 matrix. First column contains gradient and second column diagonal of Hesse matrix.

Note

This function is not intended to be invoked by the end user.

Author(s)

See Also

quadDeriv is used by the function icmaLogCon.


logcondens

Estimate a Log-Concave Probability Density from Iid Observations

v2.1.5
GPL (>= 2)
Authors
Kaspar Rufibach <kaspar.rufibach@gmail.com> and Lutz Duembgen <duembgen@stat.unibe.ch>
Initial release
2016-07-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.