In a Cox regression model where our variable of interest is continuous (e.g., a lab measurement);
If we want to obtain something other than a unit risk ratio for that variable (e.g., the hazard ratio of mortality among people who are in Quartile 4 (>75 percentile) vs Quartile 1 (< 25 percentile) for the lab measurement based on distribution of the measurements in our cohort), what would be the best way to integrate this variable into our model?
Would it be okay to create another column in our data which would indicate the quartile that person falls into and subsequently add that to the model?
Or is it better to run the model by keeping the variable as continuous, and then use the beta coefficient we find to calculate the hazard ratio by subtracting median values of different quartiles, multiplying them by the beta and exponentiation?
Thank you for your responses.