Hi,
This is an excerpt from my data set. I would like to create a dummy variable for agemon (age in months) separately for each round and study its cross-sectional effect. For example, I want to create an age variable for round 3 only by categorizing age into two cohorts. What would be the command for that? Kindly help.
This is an excerpt from my data set. I would like to create a dummy variable for agemon (age in months) separately for each round and study its cross-sectional effect. For example, I want to create an age variable for round 3 only by categorizing age into two cohorts. What would be the command for that? Kindly help.
| childid | round | agemon |
| IN010001 | 1 | 6 |
| IN010001 | 2 | 69 |
| IN010001 | 3 | 100 |
| IN010001 | 4 | 149 |
| IN010001 | 5 | 185 |
| IN010002 | 1 | 15 |
| IN010002 | 2 | 67 |
| IN010002 | 3 | 98 |
| IN010002 | 4 | 146 |
| IN010002 | 5 | 183 |
| IN010003 | 1 | 11 |
| IN010003 | 2 | 63 |
| IN010003 | 3 | 94 |
| IN010003 | 4 | 143 |
| IN010003 | 5 | 179 |

Comment