I'm trying to conduct a one-way fixed effects analysis. My data is below. I read that I need to start by coding every observation with a dummy code, for example if "id=1 then subj_1=1 if id=2 then subj_2=2", etc. Is that something I do in a data step? And then how do I run the Fixed Effects analysis using PROC PANEL once I've done that.
Obs | id | year | lwage | hours | age | educ | collgrad | msp | nev_marr | not_smsa | c_city | south |
1 | 1 | 82 | - 1.80829
| 38 | 30 | 12 | 0 | 1 | 0 | 0 | 1 | 0 |
2 | 1 | 83 | - 1.86342
| 38 | 31 | 12 | 0 | 1 | 0 | 0 | 1 | 0 |
3 | 1 | 85 | - 1.78937
| 38 | 33 | 12 | 0 | 0 | 0 | 0 | 1 | 0 |
4 | 1 | 87 | - 1.84653
| 40 | 35 | 12 | 0 | 0 | 0 | 0 | 1 | 0 |
5 | 1 | 88 | - 1.85645
| 40 | 37 | 12 | 0 | 0 | 0 | 0 | 1 | 0 |
6 | 2 | 82 | - 1.28093
| 48 | 36 | 17 | 1 | 1 | 0 | 0 | 0 | 0 |
7 | 2 | 83 | - 1.51586
| 43 | 37 | 17 | 1 | 1 | 0 | 0 | 0 | 0 |
8 | 2 | 85 | - 1.93017
| 35 | 39 | 17 | 1 | 1 | 0 | 0 | 0 | 0 |
9 | 2 | 87 | - 1.91903
| 42 | 41 | 17 | 1 | 1 | 0 | 0 | 0 | 0 |
10 | 2 | 88 | - 2.20097
| 42 | 43 | 17 | 1 | 1 | 0 | 0 | 0 | 0 |
11 | 3 | 82 | - 1.81483
| 48 | 35 | 12 | 0 | 1 | 0 | 0 | 0 | 0 |
12 | 3 | 83 | - 1.91991
| 40 | 36 | 12 | 0 | 1 | 0 | 0 | 0 | 0 |
13 | 3 | 85 | - 1.95838
| 45 | 38 | 12 | 0 | 1 | 0 | 0 | 0 | 0 |
14 | 3 | 87 | - 2.00707
| 40 | 40 | 12 | 0 | 1 | 0 | 0 | 0 | 0 |
15 | 3 | 88 | - 2.08985
| 48 | 42 | 12 | 0 | 1 | 0 | 0 | 0 | 0 |