I would like to perform a permutation test for Cox proportional hazards
regression model. I only find it for t-test and other tests (e.g. comparing
two medians).

Is there a way that I can perform a Cox PH model in R or SAS for the
LR-test?

I am doing the following

B <- 1000; LRtestx <- rep(NA,B);

Srv <- Surv(Time, Event);

for(j in 1:B){ LRtestx[j] <- cph(Srv~sample(x,length(x),replace=F))$stat[3]};

LRtest <- cph(Srv~x)$stat[3];

sum(LRtestx > LRtest)/B

Many thanks

Linda

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to