Hi everyone,
I just wanted to know how to keep the max value per individual. I have this data:
id | months worked
1 | 20
1 | 24
2 | 15
2 | 40
3 | 10
4 | 5
5 | 5
5 | 10
So, I want to do something like this:
id | months worked
1 | 24
2 | 40
3 | 10
4 | 5
5 | 10
I hope you understand my idea. Thanks!!
Related Posts with Choosing the max value per individual
Formatted IQR using CollectHi, I am using the excellent Example 3 in the "Stata Customizable Tables" manual to help me build a…
About Foreach or ForvalueHi! I am trying to create seven summary variables named den_1 to den_7 to simplify the results I hav…
How to draw overlayed coefplot with only one regressionSuppose I have ran the following regression reg wage i.year#i.gender controls where gender takes two…
GLM binomial logit model gof - DevianceGood day, I'm using Stata 16 and trying to do gof for a glm logit model but the results show a lot …
Duplicate row* Hi how once can check the duplicate row in the stata please …
Subscribe to:
Post Comments (Atom)
0 Response to Choosing the max value per individual
Post a Comment