powered by
Determine the hyper-Erlang parameters with k-means.
herlang.param(data, shape, ...)
An instance of HErlang
A dataframe
A vector of shape parameters
Others
## Create data wsample <- rweibull(10, shape=2) (dat <- data.frame.phase.time(x=wsample)) ## Generate PH that is fitted to dat (model <- herlang.param(data=dat, shape=c(1,2,3)))
Run the code above in your browser using DataLab