I would like to continue on a previous post http://www.statalist.org/forums/foru...rical-variable
I will summarize what I did.
1) I used xi: stcox to find the HR's for 'i.fi' (categorical variable) which resulted in
2) After using stphtest there was an indication of a PH violation for '_Ifi3 & 4'. Therefore, I included a tvc for these variables.
There is a statistically significant interaction with time for '_Ifi_3 & 4'.
How to present the results in a scientific article? '
This is the way I have done it, but not sure about this.
I will summarize what I did.
1) I used xi: stcox to find the HR's for 'i.fi' (categorical variable) which resulted in
Code:
_t | Haz. Ratio Std. Err. z P>|z| [95% Conf. Interval] _Ifi_2 | 1.30246 .3043983 1.13 0.258 .8238155 2.059202 _Ifi_3 | 1.227158 .2705795 0.93 0.353 .7965566 1.890533 _Ifi_4 | 1.265197 .2959124 1.01 0.315 .7999703 2.00098 confoun1 | 1.020096 .0205274 0.99 0.323 .9806459 1.061133 confoun2 | .1285151 .0386602 -6.82 0.000 .0712679 .2317471 confoun3 | 1.866878 .2851363 4.09 0.000 1.383911 2.518394
2) After using stphtest there was an indication of a PH violation for '_Ifi3 & 4'. Therefore, I included a tvc for these variables.
Code:
Haz. Ratio Std. Err. z P>|z| [95% Conf. Interval] main | _Ifi_2 | 1.42097 .6583137 0.76 0.448 .5731079 3.52317 _Ifi_3 | 2.467073 1.011836 2.20 0.028 1.104265 5.511765 _Ifi_4 | 2.806306 1.203235 2.41 0.016 1.211081 6.50275 confoun1 | 1.020374 .0205202 1.00 0.316 .9809375 1.061396 confoun2 | .12806 .0385377 -6.83 0.000 .0709998 .2309773 confoun3 | 1.873243 .2861077 4.11 0.000 1.388631 2.526978 -------------+---------------------------------------------------------------- tvc | _Ifi_3 | .9271744 .0341732 -2.05 0.040 .8625582 .9966312 _Ifi_4 | .9149631 .0368545 -2.21 0.027 .8455073 .9901245
There is a statistically significant interaction with time for '_Ifi_3 & 4'.
How to present the results in a scientific article? '
This is the way I have done it, but not sure about this.
Code:
Haz. Ratio Q1 = 1 (ref) Q2 = 1.42 [0.57 - 3.52] Q3 = 0.93 [0.86 - 0.99] Q4 = 0.91 [0.84 - 0.99]
Comment