Please try to perform parametric survival analysis modeling and the predict()
function is returning an error that it does not recognize a variable, but it is there.
Here's an example:
base=NULL
base$DIAS= c(7,6,8,6,5,5,5,6,6,11,6,4,5,5,5,5,6,4,5,6)
base$DELTA= c(0,1,0,1,0,1,1,0,1,1,0,0,0,1,1,1,1,0,0,0)
base$Protocolo= c(1,0,1,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1)
base$TIPAC= c(1,0,1,0,0,0,0,1,1,1,0,1,1,1,1,1,0,0,0,0)
base=data.frame(base)
modelo <- survreg(Surv(DIAS,DELTA) ~ Protocolo+TIPAC,data= base, dist = "exponential")
ptempo <- predict(modelo , type = "quantile", newdata= data.frame(1), p=1:99/100,se=TRUE)
Error in eval (expr, envir, enclos): 'Protocol' object not found