Hi, everyone,
I would greatly appreciate the help that you can give me, it is the following, I have a panel data structure, in long format, where for each id there can be more than one record as i show bellow
id month year income
1 03 2016 20,000
1 02 2016 15,000
1 01 2016. 35,000
2 02. 2016. 40,000
2 03. 2016. 45,000
I need to obtain is that, for each id (subject), leave only the entry of the last declared date, that is, I would need the final base to be in this way
id month year income
1 03 2016 20000
2 03 2016 45000
I would greatly appreciate your help to solve this problem, thank you very much in advance,
Regards,
Ariel.
Related Posts with help
Weights not workingHi everyone, I've been trying to run a regression analysis with weights, but Stata keeps telling me…
Regress in fixed time periodI have a dataset from 2004-2022 and want to form a regression every rolling 6 months so jan 2004-jun…
How to fix when option is not allowed (r198)?Hello, I am currently using Stata/SE14.1 and I simply tried the following codes metan ln_HR ln_LCI …
Create new variable using coefficient from a variable containing time dummyHello everyone, I'm using Stata version 14.0. I'm actually trying to estimate the natural rate of un…
Multiply obverations of a variable with a vector to creat a new data setHi experts! I am a beginner of Stata and looking for your help. I have data set 1 or matrix 1 (63x1)…
Subscribe to:
Post Comments (Atom)
0 Response to help
Post a Comment