Displaying 1 result from an estimated 1 matches for "derfun".
Did you mean:
defun
2009 Jun 01
1
survreg.distributions() error
...uot;)
## mygamma model gives an error
survreg(xx~1, dist=mygamma)
This is the error message that I get:
Error in density(z2) : argument "parms" is missing, with no default
I've tracked this down to a single line in the survreg.fit() function.
This function defines another function derfun() whose first few lines
look like this:
derfun <- function(y, eta, sigma, density, parms) {
ny <- ncol(y)
status <- y[, ny]
z <- (y[, 1] - eta)/sigma
dmat <- density(z, parms) ## line A: THIS COMMAND DOES NOT
GIVE AN ERROR
dtemp <- dmat[,...