data(hivsurv)
fit1 <- gtReg(formula = groupres ~ AGE * EDUC.,
data = hivsurv, groupn = gnum,
linkf = "probit")
residuals(object = fit1, type = "pearson")
residuals(object = fit1, type = "deviance")
Run the code above in your browser using DataLab