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
Sample may not include multiple panels error after trying to perform Breusch Godfrey test forDear Everyone, I am using panel data and I want to test for autocorrelation in my dataset. The data…
Delete all values for 1 company if some observations are missing.Hi everyone, Do you know the code to delete the entire board if 1 value is missing? For example, th…
Stata do-editor settingsDear All, is there any way to preserve the option to show whitespace in the Stata's do-editor? (the…
Creating a new variable which are label values of other variableDear Statalist , I have a data of food item that people eat. The data stored as numeric and labelle…
Working with data frame: executing commands on all framesHi, I am pretty new in using data frames. I intend to execute commands on all frames after creating…
Subscribe to:
Post Comments (Atom)
0 Response to help
Post a Comment