Last chance! 50% off unlimited learning
Sale ends in
recexp1(lrate = "loge", irate = NULL, imethod = 1)
Links
for more choices.NULL
means they are computed internally,
with the help of imethod
.irate
."vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
and vgam
.exponential
.rawy <- rexp(n <- 10000, rate = exp(1))
y <- unique(cummax(rawy)) # Keep only the records
length(y) / y[length(y)] # MLE of rate
fit <- vglm(y ~ 1, recexp1, trace = TRUE)
coef(fit, matrix = TRUE)
Coef(fit)
Run the code above in your browser using DataLab