Let's assume I have the following dataset:
time censor treatment
6 0 A
12 1 A
4 0 B
5 0 B
3 0 C
12 1 C
6 0 B
12 1 C
4 0 A
5 0 C
3 0 B
12 1 A
so what I did is relevel to my reference A and ran:
coxph(Surv(time,censor)~treatment)
I looked at the results and compared with the sample protocol provided and found out that my exp(-coeff) is equal to their exp(coeff) in both cases B and C.
Therefore I have run the code again with reference B and once with reference C and have found out, that both lower and upper limits agree with sample. However I addtionally need the log-rank p-value and this is not provided in this fashion, therefor I would like to find out:
How do I turn around the model, so that inverse hazard ratio and conf. limits and p-values are shown (I mean for inverse model)/ or do you think something else has gone wrong?