Description Usage Arguments Details Value References Examples
MLEln2p_cpp
is a wrapper function to a fast C++ implementation optimizing parameters of the 2-parameter
lognormal distribution for a set of data consisting of failures, or alternatively failures and suspensions.
1 | MLEln2p_cpp(x, s=NULL, MRRfit=NULL)
|
x |
A vector of failure data. |
s |
An optional vector of suspension data. |
MRRfit |
An optional vector such as produced by MRRln2pxy or MRRln2pyx having parameter order [1] Mulog, [2] Sigmalog. If not provided, this function will calculate a suitable estimate of the parameters to initiate the optimization. |
This function calls a C++ function that performs the Nelder-Meade simplex optimization of the negative log-likelihood function. The code is streamlined for the two-parameter, only, case.
A vector containing results in the following order: Mulog, Sigmalog, Log-Likelihood.
Mike Hutt,a GNU implementation in C http://www.mikehutt.com/neldermead.html Sasa Singer and John Nelder (2009) Nelder-Mead algorithm. Scholarpedia, 4(7):2928. Botao Jia, Simplex-Optimization-Algorithm-and-Implemetation-in-C-Programming.htm, codeguru.com/cpp/article.php/c17505/
1 2 3 | failures<-c(90,96,30,49,82)
suspensions<-c(100,45,10)
fit_result<-MLEln2p_cpp(failures,suspensions)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.