MLE {logcondens}R Documentation

Unconstrained piecewise linear MLE

Description

Given a vector of observations x=(x1,,xm){\bold{x}} = (x_1, \ldots, x_m) with pairwise distinct entries and a vector of weights w=(w1,,wm){\bold{w}}=(w_1, \ldots, w_m) s.t. i=1mwi=1\sum_{i=1}^m w_i = 1, this function computes a function ϕ^MLE\widehat \phi_{MLE} (represented by the vector (ϕ^MLE(xi))i=1m(\widehat \phi_{MLE}(x_i))_{i=1}^m) supported by [x1,xm][x_1, x_m] such that

L(ϕ)=i=1mwiϕ(xi)j=1m1(xj+1xj)J(ϕj,ϕj+1)L(\phi) = \sum_{i=1}^m w_i \phi(x_i) - \sum_{j=1}^{m-1} (x_{j+1} - x_j) J(\phi_j, \phi_{j+1})

is maximal over all continuous, piecewise linear functions with knots in {x1,,xm}\{x_1, \ldots, x_m\}

Usage

MLE(x, w = NA, phi_o = NA, prec = 1e-7, print = FALSE)

Arguments

x

Vector of independent and identically distributed numbers, with strictly increasing entries.

w

Optional vector of nonnegative weights corresponding to xm{\bold{x}_m}.

phi_o

Optional starting vector.

prec

Threshold for the directional derivative during the Newton-Raphson procedure.

print

print = TRUE outputs log-likelihood in every loop, print = FALSE does not. Make sure to tell R to output (press CTRL+W).

Value

phi

Resulting column vector (ϕ^MLE(xi))i=1m.(\widehat \phi_{MLE}(x_i))_{i=1}^m.

L

Value L(ϕ^MLE)L(\widehat \phi_{MLE}) of the log-likelihood at ϕ^MLE.\widehat \phi_{MLE}.

Fhat

Vector of the same length as x{\bold{x}} with entries F^MLE,1=0\widehat F_{MLE,1} = 0 and

F^MLE,k=j=1k1(xj+1xj)J(ϕj,ϕj+1)\widehat F_{MLE,k} = \sum_{j=1}^{k-1} (x_{j+1} - x_j) J(\phi_j, \phi_{j+1})

for k2.k \ge 2.

Note

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

Author(s)

Kaspar Rufibach, kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch

Lutz Duembgen, duembgen@stat.unibe.ch,
https://www.imsv.unibe.ch/about_us/staff/prof_dr_duembgen_lutz/index_eng.html


[Package logcondens version 2.1.8 Index]