I've been running a Cox regression with a dummy encoded dataset. For certain reasons, I tried doing the same procedure by using
R to designate my categorical variables.
When I do this, some of the dummy encoded variables that previously violated the PH assumption are now merged with the rest of the levels in the category, and suddenly that variable no longer violates PH.
This difference could be quite important, it seems to me, since variables I previously considered to have nonPH and therefore a time interaction now do not.
I'd love to hear some thoughts on this, such as which method might be preferred and what possible implications this could have for one's analysis. I guess those time interactions I detected in the first analysis are still there but are now just diluted by the other levels). Does this mean I'm losing information by not dummy encoding?