Hi,
Im writing my thesis and I am using data from the last 17 years of 26 different countries. I have made made the variable countrynumber and made it time dependent
xtset countrynumber year, yearly
panel variable: countrynumber (strongly balanced)
time variable: year, 2000 to 2017
delta: 1 year
I am trying to make a regression using the xtreg command. This works with certain variables, but not with others. It gives the error of no observations (r(2000)). The variables that give these error are called PESandadministration,Training, Employmentincentives, Shelterendandsupportedemploym, Activemeasures1070, Percentageofemployeeswiththe, Vakbondendichtheidpercentage. I have tried replacing the missing variables with the variable from previous years by using the command
by countrynumber (year), sort: replace myvar = myvar[_n-1] if myvar >= . but it says either weights are not allowed or type mismatch.
I was hoping someone can help me with this.
Im writing my thesis and I am using data from the last 17 years of 26 different countries. I have made made the variable countrynumber and made it time dependent
xtset countrynumber year, yearly
panel variable: countrynumber (strongly balanced)
time variable: year, 2000 to 2017
delta: 1 year
I am trying to make a regression using the xtreg command. This works with certain variables, but not with others. It gives the error of no observations (r(2000)). The variables that give these error are called PESandadministration,Training, Employmentincentives, Shelterendandsupportedemploym, Activemeasures1070, Percentageofemployeeswiththe, Vakbondendichtheidpercentage. I have tried replacing the missing variables with the variable from previous years by using the command
by countrynumber (year), sort: replace myvar = myvar[_n-1] if myvar >= . but it says either weights are not allowed or type mismatch.
I was hoping someone can help me with this.
Comment