powered by
Fit the shape and scale parameters for a Weibull distribution to the time-to-event data using MLE.
weimle1(time, status)
A list including out (the return from mle()), shape, and scale
A vector of event times
A vector of 0-1 censoring status, 0 for censored, 1 for observed
time <- rexp(100) status <- rbinom(n=100, size=1, prob=0.5) weimle1(time=time, status=status)
Run the code above in your browser using DataLab