Last data update: 2014.03.03
|
R: Fits parametric models
Fits parametric models
Description
Will be combined with nonpar version soon.
Usage
lbfit.par(time, censor, family, initial = list(shape, rate, meanlog, sdlog))
Arguments
time |
The observed time as a vector.
|
censor |
The survival indicator, 1 if censored, 0 otherwise.
|
family |
A string indicating the parametric family to fit. Options are weibull , gamma , exponential , lognormal
, and loglogistic .
|
initial |
A list of initial parameters for optimization, meanlog , and sdlog for lognormal and the shape and rate for the rest.
|
Details
See the master thesis of Pjerome student.
Value
The list returned by the optim function.
Note
Write why and when you get NaNs.
Author(s)
V.P. Nia and and P. J. Bergeron.
References
The thesis or an article here.
See Also
lbfit.nonpar ,lbsample .
Examples
mydata=lbsample(500,family="exponential",par=list(rate=1))
lbfit.par(time=mydata$time,censor=mydata$censor,family="exponential",initial=list(shape=3,rate=3))
Results
|