Hi all,
Hoping for a way to generate a 'flag' variable for low p-values from a proportional hazards test.
The idea being that I run
stcox var_1 var_2 var_3...var_k
estat phtest, detail <- output contains p-value for each variable in the model
...and then...
gen lowp=1 if (the corresponding variable p-value<0.05)
I'm by no means a Stata expert so I'm not sure if it's viable to generate a variable based on part of a previous output, but if it is, would appreciate advice!
Thanks,
James
Hoping for a way to generate a 'flag' variable for low p-values from a proportional hazards test.
The idea being that I run
stcox var_1 var_2 var_3...var_k
estat phtest, detail <- output contains p-value for each variable in the model
...and then...
gen lowp=1 if (the corresponding variable p-value<0.05)
I'm by no means a Stata expert so I'm not sure if it's viable to generate a variable based on part of a previous output, but if it is, would appreciate advice!
Thanks,
James
Comment