gph.param | R Documentation |
Generate GPH randomly and adjust parameters to fit its first moment to the first moment of data.
gph.param(data, skel, ...)
data |
A dataframe |
skel |
An instance of skeleton of GPH. |
... |
Others |
An instance of GPH
## Create data wsample <- rweibull(10, shape=2) (dat <- data.frame.phase.time(x=wsample)) ## Generate PH that is fitted to dat (model <- gph.param(data=dat, skel=ph(5)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.