Hi everyone,
I am working with firm level dataset for Spain around 87,000 firms (long format in stata), I have unevenly 10 years observations for each firm such as some firms have observations from 30/12/1994 to 30/12/2004 and some has 30/12/2011 to 30/12/2021, total year observation goes from 1994 to 2021. I want to deflate all the variables for each year. I have annual GDP deflator from World Bank (1994 to 2021). My question is how to combine two dataset and match the year observations (I have DDMMYYYY format for the firm level dataset and YYYY format for the GDP deflator) and deflate the variables.
Best regards,
I am working with firm level dataset for Spain around 87,000 firms (long format in stata), I have unevenly 10 years observations for each firm such as some firms have observations from 30/12/1994 to 30/12/2004 and some has 30/12/2011 to 30/12/2021, total year observation goes from 1994 to 2021. I want to deflate all the variables for each year. I have annual GDP deflator from World Bank (1994 to 2021). My question is how to combine two dataset and match the year observations (I have DDMMYYYY format for the firm level dataset and YYYY format for the GDP deflator) and deflate the variables.
Best regards,

Comment