Hello all,
I am using Stata 14 on a Mac. I have a panel data set, in which individuals are followed for 16 rounds. I am looking at the relationship between being arrested and employment outcomes.
Specifically, I would like to estimate the predicted probability of employment for (a) two periods prior to arrest, (b) the year of arrest, and (c) five periods after the arrest. Following the guidance on the Stata website, I can estimate the estimated change in probability at each time point, as follows
This gives me the predicted change in probability between groups, as follows:
But I want predicted values for each group and time point. Can anyone tell me how to get this?
Thanks.
Amanda
I am using Stata 14 on a Mac. I have a panel data set, in which individuals are followed for 16 rounds. I am looking at the relationship between being arrested and employment outcomes.
Specifically, I would like to estimate the predicted probability of employment for (a) two periods prior to arrest, (b) the year of arrest, and (c) five periods after the arrest. Following the guidance on the Stata website, I can estimate the estimated change in probability at each time point, as follows
Code:
tsset pubid round logit emp_dli f(1/2).arr_first l(0/5).arr_first if fem_good==1 margins, dydx(_all)
Code:
Expression : Pr(emp_dli), predict()
dy/dx w.r.t. : F.arr_first F2.arr_first arr_first L.arr_first L2.arr_first L3.arr_first L4.arr_first L5.arr_first
------------------------------------------------------------------------------
| Delta-method
| dy/dx Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
arr_first |
F1. | -.0313027 .0232338 -1.35 0.178 -.07684 .0142347
F2. | -.0399611 .0224618 -1.78 0.075 -.0839855 .0040633
--. | -.0121335 .0233709 -0.52 0.604 -.0579396 .0336725
L1. | -.0034893 .0228872 -0.15 0.879 -.0483474 .0413689
L2. | .0067166 .0226751 0.30 0.767 -.0377258 .0511589
L3. | -.0490618 .0199689 -2.46 0.014 -.0882001 -.0099234
L4. | -.0202748 .0215074 -0.94 0.346 -.0624285 .0218788
L5. | -.0606021 .0192701 -3.14 0.002 -.0983708 -.0228333
------------------------------------------------------------------------------
But I want predicted values for each group and time point. Can anyone tell me how to get this?
Thanks.
Amanda

Comment