Thank you Nick Cox for your explanation. I used your code and included 'wanted' in my Cox regression using factor variable notation (i.wanted), but Stata returned:
I then included it as a continuous variable (c.wanted) and received the following output. I'd appreciate help from anyone on how to interpret the hazard ratio for this variable 'wanted' given his takes both positive values (the number of years that the male in the couple is older than the female) and negative values (the number of years that the female in the couple is older than the male):
wanted: factor variables may not contain negative values r(452)
Code:
_t Haz. Ratio Std. Err. z P>|z| [95% Conf. Interval] wanted 1.016876 .0155319 1.10 0.273 .9868852 1.047778
Comment