26
Stata Technical Bulletin
STB-22
id |
activity |
age |
birth |
year |
grage | |
1. |
1 |
nonactiv |
22 |
54 |
76 |
-25 |
2. |
1 |
selfemp |
26 |
54 |
81 |
-25 |
3. |
1 |
selfemp |
26 |
54 |
81 |
[25-26 |
4. |
1 |
selfemp |
27 |
54 |
81 |
[26- |
ε. |
1 |
selfemp |
39 |
54 |
93 |
[26- |
6. |
2 |
nonactiv |
19 |
74 |
93 |
-25 |
7. |
3 |
nonactiv |
19 |
65 |
84 |
-25 |
8. |
3 |
selfemp |
22 |
65 |
87 |
-25 |
9. |
3 |
waged |
26 |
65 |
93 |
-25 |
10. |
3 |
waged |
26 |
65 |
93 |
[25-26 |
11. |
3 |
waged |
28 |
65 |
93 |
[26- |
12. |
4 |
nonactiv |
7 |
70 |
77 |
-25 |
13. |
4 |
nonactiv |
20 |
70 |
90 |
-25 |
14. |
4 |
selfemp |
23 |
70 |
93 |
-25 |
ιε. |
ε |
nonactiv |
4 |
68 |
72 |
-25 |
16. |
ε |
waged |
11 |
68 |
79 |
-25 |
17. |
ε |
nonactiv |
22 |
68 |
90 |
-25 |
18. |
ε |
waged |
26 |
68 |
93 |
-25 |
19. |
6 |
nonactiv |
12 |
66 |
78 |
-25 |
20. |
6 |
nonactiv |
24 |
66 |
90 |
-25 |
21. |
6 |
waged |
26 |
66 |
93 |
-25 |
22. |
6 |
waged |
26 |
66 |
93 |
[25-26 |
23. |
6 |
waged |
27 |
66 |
93 |
[26- |
24. |
7 |
nonactiv |
24 |
69 |
93 |
-25 |
25. |
8 |
nonactiv |
16 |
54 |
70 |
-25 |
26. |
8 |
nonactiv |
26 |
54 |
93 |
-25 |
27. |
8 |
nonactiv |
26 |
54 |
93 |
[25-26 |
28. |
8 |
nonactiv |
39 |
54 |
93 |
[26- |
. tabulate activity sex if grage==l
I Sex
Activityl |
Male |
Female I |
Total |
— | |||
nonactiV I |
0 |
1 I |
1 |
waged I |
0 |
2 I |
2 |
selfemp I |
1 |
0 I |
1 |
— | |||
Total I |
1 |
3 I |
4 |
Suppose that we are interested in studying the employment situation at a particular date, say 1991:
. use example, clear
. list id activity age birth year
id |
activity |
age |
birth |
year | |
1. |
1 |
nonactiv |
22 |
54 |
76 |
2. |
1 |
selfemp |
27 |
54 |
81 |
3. |
1 |
selfemp |
39 |
54 |
93 |
4. |
2 |
nonactiv |
19 |
74 |
93 |
5. |
3 |
nonactiv |
19 |
65 |
84 |
6. |
3 |
selfemp |
22 |
65 |
87 |
7. |
3 |
waged |
28 |
65 |
93 |
8. |
4 |
nonactiv |
7 |
70 |
77 |
9. |
4 |
nonactiv |
20 |
70 |
90 |
10. |
4 |
selfemp |
23 |
70 |
93 |
11. |
5 |
nonactiv |
4 |
68 |
72 |
12. |
5 |
waged |
11 |
68 |
79 |
13. |
5 |
nonactiv |
22 |
68 |
90 |
14. |
5 |
waged |
25 |
68 |
93 |
15. |
6 |
nonactiv |
12 |
66 |
78 |
16. |
6 |
nonactiv |
24 |
66 |
90 |
17. |
6 |
waged |
27 |
66 |
93 |
18. |
7 |
nonactiv |
24 |
69 |
93 |
19. |
8 |
nonactiv |
16 |
54 |
70 |
20. |
8 |
nonactiv |
39 |
54 |
93 |
. slice year, tvid(id) interval(90,91) saving(new91, replace) generate(period)
-90 + ε
[90-91 + 8
[91- --------
13 records added to 20
Now it is straightforward to analyze the job status
of the four individuals in this sample who reached the age of 26 during
the survey period.
More intriguing information
1. A multistate demographic model for firms in the province of Gelderland2. Alzheimer’s Disease and Herpes Simplex Encephalitis
3. Measuring and Testing Advertising-Induced Rotation in the Demand Curve
4. Determinants of Household Health Expenditure: Case of Urban Orissa
5. THE AUTONOMOUS SYSTEMS LABORATORY
6. The name is absent
7. EMU's Decentralized System of Fiscal Policy
8. Strategic Investment and Market Integration
9. Washington Irving and the Knickerbocker Group
10. Parent child interaction in Nigerian families: conversation analysis, context and culture