Learn R Programming

mapfit (version 1.0.0)

gph.param: 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, ...)

Value

An instance of GPH

Arguments

data

A dataframe

skel

An instance of skeleton of GPH.

...

Others

Examples

Run this code
## 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)))

Run the code above in your browser using DataLab