coxreg(time, status, x, strata=rep(1, length(time)), wt=rep(1, length (time)), resid="none", init=rep(0, ncol(x)), iter.max=10, eps= 0.0001, table=T, inf.ratio=2000)
One use of risk weights is to set certain coeficients at a fixed value, much like the offset statement of a generalized linear model (see glim). Assume that the coeficients for say, age and sex, have been fixed from an outside study, perhaps national death rates, and we wish to adjust for them without estimating the terms. Then a weight of exp(beta1*age+beta2*sex) would be used.
Cox, D. R. and Oakes, D. (1984). Analysis of Survival Data. Chapman and Hall, London.
Kalbfleisch, J. D. and Prentice, R. L. (1980). The Statistical Analysis of Failure Time Data. Wiley, New York.
Miller, R. G. (1981). Survival Analysis. Wiley, New York.
xx <- coxreg(heart$time, heart$stat, x[,-1], resid="mart") # fit all but column 1 print(xx) # nice printout of results plot(x[,1], xx$resid) # proper functional form for variable 1? lines(lowess(x[,1], xx$resid, iter=0))