I have a dataset, where each person is followed from unemployment until employment, where outcome is the time untill employment measurd in months. My upper limit is 24 months. I have persons who is right-censored due to move, die, maternity leave etc, they have time until they ''fall out''.
How do i get the predicted duration for each person after running a stcox regression?
I wanna calculate the difference between the actual and predicted duration for each person, where the predicted duration is estimated by the model where i control for other things (age, sex etc)
Can somebody help me?
Related Posts with calculate predicted duration after stcox
Weighted mean for each year, by regions in a panel dataI have a panel dataset of 51 countries for 19 years. For each of the panels, it is subdivided into f…
Merge panel data with same variables but different observationsHi I am trying to merge two different datasets with panel data. One of them contains data about sub…
Append command changes the content of observations of the appended fileI have an issue with the append command. I have a couple of stata files that contain three variable…
Drop observations if they have equal values on variable A but different values dummy variable BHello everyone, I would like to drop all observations, that have the same value on variable product…
Exporting table of results of prtest for Two-sample test of proportions using VARIABLES NOT GROUPS !hello, everyone! I cannot find a way to export the results of prtest of a two-sample test of propor…
Subscribe to:
Post Comments (Atom)
0 Response to calculate predicted duration after stcox
Post a Comment