Hello everyone!
I need some advice on using streg / stcox when using time-varying covariates. I have some very specific questions, so I made a new post, since I have found nothing of similar that could help me out in the forum. Anyway, the thing is that I want to run an EHA model on the transition to the first child as outcome variable and a set of explanatory covariates, of which many would be time-varying, such as employment status (yes or no) or social class (5 categories). I made my dataset in such a way that every row represents a month for each person starting when they're 20 years old: so a 24 years old has 5*12 rows (born in january, survey time being december). Since I couldn't understand myself a couple of things reading books, manuals and STATA help, I thought it was necessary to ask you on this forum. I will list my questions to avoid confusion, sorry for the long post...
1) Do discrete time-varying covariates have to have a certain structure in particular? I mean, for example, can one person join and exit unemployment more times or they can just exit/join once? Can I have something like "0 0 0 1 1 1 1 0 0 0" or I am forced to have "0 0 0 0 1 1 1 1 1"? for each individual?
2) Can discrete time-varying covariates assume more categories than two? I am not sure, but I have noted that I get very weird results when using TVC that are not dichotomous.
3) Does it make a serious difference using stcox instead of streg? I heard I can't use streg properly with TVCs, is that true?
4) Since I am using TVCs, do I have to specify the id option in stset? Aren't the episodes my new unit of analysis? (I actually get even weirder results when i do not specify id).
5) In case of using streg, how do I exactly interpret time-ratios? Does a value below 1.0 represent a faster transition with respect to the reference? Does 0.5 mean that transition time is half of the reference?
Thanks to anyone whom will want to take the time to answer me. I hope I have not broken any forum rule writing this, otherwise I apologize. Best regards.
I need some advice on using streg / stcox when using time-varying covariates. I have some very specific questions, so I made a new post, since I have found nothing of similar that could help me out in the forum. Anyway, the thing is that I want to run an EHA model on the transition to the first child as outcome variable and a set of explanatory covariates, of which many would be time-varying, such as employment status (yes or no) or social class (5 categories). I made my dataset in such a way that every row represents a month for each person starting when they're 20 years old: so a 24 years old has 5*12 rows (born in january, survey time being december). Since I couldn't understand myself a couple of things reading books, manuals and STATA help, I thought it was necessary to ask you on this forum. I will list my questions to avoid confusion, sorry for the long post...
1) Do discrete time-varying covariates have to have a certain structure in particular? I mean, for example, can one person join and exit unemployment more times or they can just exit/join once? Can I have something like "0 0 0 1 1 1 1 0 0 0" or I am forced to have "0 0 0 0 1 1 1 1 1"? for each individual?
2) Can discrete time-varying covariates assume more categories than two? I am not sure, but I have noted that I get very weird results when using TVC that are not dichotomous.
3) Does it make a serious difference using stcox instead of streg? I heard I can't use streg properly with TVCs, is that true?
4) Since I am using TVCs, do I have to specify the id option in stset? Aren't the episodes my new unit of analysis? (I actually get even weirder results when i do not specify id).
5) In case of using streg, how do I exactly interpret time-ratios? Does a value below 1.0 represent a faster transition with respect to the reference? Does 0.5 mean that transition time is half of the reference?
Thanks to anyone whom will want to take the time to answer me. I hope I have not broken any forum rule writing this, otherwise I apologize. Best regards.
Comment