Displaying 1 result from an estimated 1 matches for "parms2".
Did you mean:
parms
2009 Jun 01
1
survreg.distributions() error
...=scale),
1-pgamma(x, shape=shape, scale=scale),
dgamma(x, shape=shape, scale=scale),
(shape-1)/x - 1/scale,
(shape-1)*(shape-2)/x^2
- 2*(shape-1)/(x*scale)
+ 1/scale^2)},
quantile = function(p, parms) {
qgamma(p, shape=parms[1], scale=parms2)},
deviance= function(...) stop('deviance residuals not defined'),
parms=c(2,2)
)
## create some interval censored data
xx <- Surv(time=rep(c(.5, 1, 1.5), each=5),
time2=rep(2, 15),
event=rep(3, 15),
type="interval")
## lognormal model runs fine
survreg(xx~1...