Description Usage Arguments Details Value References Examples
MLEw2p_optim
fits a set of data consisting of failures, or alternatively failures and suspensions,
to the 2-parameter Weibull distribution.
1 | MLEw2p_optim(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 MRRw2pxy having parameter order [1] Eta, [2] Beta. If not provided, this function will calculate a suitable estimate of Beta to initiate the optimization. |
This function will sort all input data while preserving failure and suspension information in paired vectors. The code is expository as it directly implements the call to optim, just as it is made via packages survival and fitdistrplus for the same purpose. The default optimization method is an implementation of the "Simplex" algorithm by Nelder and Mead (1965), which uses only function values and is robust but relatively slow.
A vector containing results in the following order: Eta (scale), Beta (shape), Log-Likelihood)
CRAN packages fitdistrplus,survival and stats::optim.Rd
1 2 3 | failures<-c(90,96,30,49,82)
suspensions<-c(100,45,10)
fit_result<-MLEw2p_optim(failures,suspensions)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.