I am using NLSY1979 panel data. I want to sort my variable weight in ascending order, but I want to still see every weight observation for that ID. This way I can determine if the extreme weight values are mistakes or if they are reasonable weights in comparison to the ID's weights in every year. So I'm trying to get it to do something like this and I cannot figure out what commands to use.
'sort weightchange ID' and vice versa are not working
"sort ID year
sort weightchange, stable " also dont work. any ideas?
'sort weightchange ID' and vice versa are not working
"sort ID year
sort weightchange, stable " also dont work. any ideas?
ID | year | Weightchange | weight |
1 | 2002 | -700 | 200 |
1 | 2001 | 100 | 900 |
1 | 2003 | 0 | 200 |
2 | 2001 | -650 | |
2 | 2002 | ||
2 | 2003 | ||
3 | 2001 | -645 | |
3 | 2002 | ||
3 | 2003 |
Comment