I'm trying to calculate the hazard ratio between two classes, from a variable composed by three classes, i'm modelling an AFT weibull model with this and other indipendent variables
for example my variable is a categorial variable:
0 = group A
1 = group B
2 = group C
my model is:
log h(t) = alfa*log (t) + beta0_ + Beta1_ * X
where:
beta0_ is for the intercept
beta1_ is my variable of interest
the parameter are calculated from the estimate parameter of the sas proc lifereg in this method:
beta0_ = -beta0/scale_parameter
beta1_ = -beta1/scale_parameter
When i try to make an estimation of the hazard ratio between the C and A groups
HR = exp (beta1_ * 2) / exp(beta1_ * 0) = exp (beta1_ * 2)
my problem is if i apply the same method on the same data by changing only the classification indication in a second variable:
0 = group A
2 = group B
1 = group C
(the groups are fixed for individual i change only the indication variable value)
i replace the previous classification variable with this one and i repeat the same step, the lifereg estimation obviusly change but when i went to calculate the hazard ratio for the same classes, which i expect to be the same then before, calculated as:
HR = exp (beta1_ * 1) / exp(beta1_ * 0) = exp (beta1_ * 1)
it result different from the previously calculated why?