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
Truncation of the most extreme 1 percent of earningsHi all, I want to truncate (not winsorize) the most extreme 1 percent of earnings. However, I do no…
SEM and GSEM missing valuesDear all, I am trying to make simple model with Latent construct predicted by Ordinal endogenous ob…
Baseline characteristics with multiple imputed dataDear all, I am working with multiple imputed data from a RCT with an intervention and a control gr…
Re-run regression command on different subsamplesDear all, I would like to run the following regression command on different subsamples of a dataset…
How to collapse annual data into decade observations for panel dataHi, I have a dataset put together from the Penn World Tables, and I'm working to understand the rel…
Subscribe to:
Post Comments (Atom)
0 Response to help
Post a Comment