delay_model {incubate} | R Documentation |
Fit a delayed Exponential or Weibull model to one or two given sample(s).
Description
Maximum product spacing is used to fit the parameters.
Numerical optimization is done by stats::optim
.
Usage
delay_model(
x = stop("Specify observations!", call. = FALSE),
y = NULL,
distribution = c("exponential", "weibull"),
method = c("MPSE", "MLE0"),
bind = NULL,
ties = c("density", "equidist", "random", "error"),
optim_args = NULL,
verbose = 0
)
Arguments
x |
numeric. observations of 1st group. Can also be a list of data from two groups. |
y |
numeric. observations from 2nd group |
distribution |
character. Which delayed distribution is assumed? Exponential or Weibull. |
method |
character. Which method to fit the model? 'MPSE' = maximum product of spacings estimation or 'MLE0' = standard maximum likelihood estimation |
bind |
character. parameter names that are bind together in 2-group situation. |
ties |
character. How to handle ties. |
optim_args |
list. optimization arguments to use. Use |
verbose |
integer. level of verboseness. Default 0 is quiet. |
Value
incubate_fit
the delay-model fit object. Or NULL
if optimization failed (e.g. too few observations).