| delay_model | R Documentation |
Maximum product of spacings estimation is used by default to fit the
parameters. Estimation via naive maximum likelihood (method = "MLEn") is
available, too, but MLEn yields severely biased estimates for small samples.
MLEc is a corrected version of MLEn due to Cheng and Iles (1987).
delay_model(
x = stop("Specify observations for first group x=!", call. = FALSE),
y = NULL,
distribution = c("exponential", "weibull", "normal"),
twoPhase = FALSE,
bind = NULL,
method = c("MPSE", "MLEn", "MLEw", "MLEc"),
control = list()
)
x |
numeric. observations of 1st group. Can also be a list of data from two groups. |
y |
numeric. observations from 2nd group |
distribution |
Which delayed distribution is assumed? Exponential or Weibull. Can be given as character or as distribution list-object. |
twoPhase |
logical. Allow for two phases? |
bind |
character. parameter names that are bound together in 2-group situation. |
method |
character. Which method to fit the model? 'MPSE' = maximum product of spacings estimation or 'MLEn' = naive maximum likelihood estimation or 'MLEw' = weighted MLE' or MLEc' = corrected MLE |
control |
list. Details of the optimization. E.g. profiling, penalization and MLEw settings. |
The parameter control= allows to set specifics of the optimization
process of the delay model fit. Possible list entries are
verbose level of verboseness. Default 0 is quiet
profiled aim to profile out a parameter
pen_shape logical. Should high values of shape (for Weibull distribution) be penalized? Default is FALSE, or a list with further penalization details.
MPSE_ties character. Strategy to handle ties for method = "MPSE". Either 'density' (default), 'equispaced' or 'error'.
MLEw_weight character. Name of method to build weights for MLEw-method.
MLEw_nobs character (3 letters). Indicate how number of observation is used for calculating weights: E for only events, A for all observations. Default is "AAA", i.e. all observations for all three weights.
Numerical minimization is normally done by stats::optim. If this
minimization attempt fails minqa::bobyqa is used as fall-back.
incubate_fit the delay-model fit object with criterion to minimize.
Or NULL if optimization failed (e.g. too few observations).
R. C. H. Cheng, T. C. Iles, Corrected Maximum Likelihood in Non-Regular Problems, Journal of the Royal Statistical Society: Series B (Methodological), Volume 49, Issue 1, September 1987, pp. 95–101, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1111/j.2517-6161.1987.tb01428.x")}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.