Hello everyone,
for my masters thesis I am estimating a fe model with xtreg using data on country and year level. I used the country (30 obs) as the id variable in the panel and added year dummies (i.year from 2011 to 2019) to account for time-variant effects. For context: it estimates the influence of national-expenditures on territorial or consumption-based emissions, taken in logs.
With the estimated parameters I want to calculate the values of the emissions for the last period (2019) in the dataset using the values of national expenditures from the first period (2011), leaving every other independent variable as it was. This I want to do for every single country seperately. Is there a quick way to do this via predict commands? I read through the predict and adjust manuals in STATA and looked in the forum but couldn't figure out how to obtain the predicted values.
Help would be much appreciated.
Best regards,
Niklas
for my masters thesis I am estimating a fe model with xtreg using data on country and year level. I used the country (30 obs) as the id variable in the panel and added year dummies (i.year from 2011 to 2019) to account for time-variant effects. For context: it estimates the influence of national-expenditures on territorial or consumption-based emissions, taken in logs.
Code:
xtreg logterr logne EU EUxNE loggdp logpop Openness i.year, fe vce(cluster id)
Help would be much appreciated.
Best regards,
Niklas
Comment