gph.param: Generate GPH using the information on data

View source: R/model_ph.R

gph.paramR 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)))


mapfit documentation built on Nov. 22, 2022, 5:05 p.m.