R/optim.survival.mle2.R

Defines functions optim.survival.mle2

Documented in optim.survival.mle2

optim.survival.mle2 <-
function(value, censoring,x, y, param,intercept,censor.type){
value<-c(intercept,value)
len<-length(value)
resid <- y - x %*% value[-c((len - 3):len)]
gld.val<-value[c((len - 3):len)]
return(survival.mle(resid,gld.val,param,censoring,censor.type)*-1)

}

Try the GLDreg package in your browser

Any scripts or data that you put into this service are public.

GLDreg documentation built on May 13, 2022, 9:06 a.m.