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
Making long labels wrap into two lines using esttab on latexHi all, I am trying to tabulate some variables and export the data to latex using esttab (command f…
generate random number using loopforv i = 1/10{ if mod(`i',2)==0 gen z`i' = rnormal() if mod(`i',2)==1 gen z`i' = runiform() } i want…
Customizing legend of twoway graph.Dear All, I am making a twoway graph as follows: Code: twoway (scatter daysMED week if dateWeek&…
How to export difference-in-differences table from Stata to Latex?I'm trying to export the results from a difference-in-differences from Stata to Latex. I tried the f…
adding multiple tables to an existing sheet in excel or buliding two/three way table?Hello, I'm trying to build three tables (each one for a country based on var country_id) in excel. …
Subscribe to:
Post Comments (Atom)
0 Response to calculate predicted duration after stcox
Post a Comment