Hi All,
I am trying to merge into a panel dataset containing data on inflation until December 2021, a dataset of expected data on inflation from August 2021 until December 2030. I am merging the two datasets using the dates. The code I use is:
merge dates 1:1 using expected_inflation, keep (master match match_update) update
The issue is that the code above drops all observation between August 2021 and December 2021, while I would like to keep the observations until December 2021 from the master datasets and merge the expected data from January 2022 onwards. The variable for inflation has the same name in both datasets and I would need to merge the two datasets into the same column.
Can you help me to figure out why the master match and match_update drops the overlapping observations?
Thanks All
I am trying to merge into a panel dataset containing data on inflation until December 2021, a dataset of expected data on inflation from August 2021 until December 2030. I am merging the two datasets using the dates. The code I use is:
merge dates 1:1 using expected_inflation, keep (master match match_update) update
The issue is that the code above drops all observation between August 2021 and December 2021, while I would like to keep the observations until December 2021 from the master datasets and merge the expected data from January 2022 onwards. The variable for inflation has the same name in both datasets and I would need to merge the two datasets into the same column.
Can you help me to figure out why the master match and match_update drops the overlapping observations?
Thanks All
Comment