gph.param {mapfit} | R Documentation |
Generate GPH using the information on data
Description
Generate GPH randomly and adjust parameters to fit its first moment to the first moment of data.
Usage
gph.param(data, skel, ...)
Arguments
data |
A dataframe |
skel |
An instance of skeleton of GPH. |
... |
Others |
Value
An instance of GPH
Examples
## 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)))
[Package mapfit version 1.0.0 Index]