MLE {logcondens} | R Documentation |
Unconstrained piecewise linear MLE
Description
Given a vector of observations with pairwise distinct entries and
a vector of weights
s.t.
, this function computes a function
(represented by the vector
) supported by
such that
is maximal over all continuous, piecewise linear functions with knots in
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 |
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 |
L |
Value |
Fhat |
Vector of the same length as
for |
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