Dear Dias,
Thank you for your reply.
I did not say it clearly in the last post. I also want to use PPML with fixed effects or random effects. The code in the last seems only pooled regression.
egen id=group(countrycode sic2digit)
xtset id year
fixed-effects:
xi, pre(id_) noomit i.id
xi, pre(y_) noomit i.id
ppml ofdi lndist contig lngdp lnchngdp countryskill industryskill countryskillindustryskill countryrdpeople industry_rdintensity countryrdindustryrd bits fta cu economicfreedomindex financedevelopment id_* y_*, cluster(id)
Is this code right? In this code, id is a combination of country and industry, so once I included "id_*" in the code, I do not have to include country_* or industry_*, because they had been fixed through "id_*", right?
Then how to write code with RE?
All the Best,
Meng
Thank you for your reply.
I did not say it clearly in the last post. I also want to use PPML with fixed effects or random effects. The code in the last seems only pooled regression.
egen id=group(countrycode sic2digit)
xtset id year
fixed-effects:
xi, pre(id_) noomit i.id
xi, pre(y_) noomit i.id
ppml ofdi lndist contig lngdp lnchngdp countryskill industryskill countryskillindustryskill countryrdpeople industry_rdintensity countryrdindustryrd bits fta cu economicfreedomindex financedevelopment id_* y_*, cluster(id)
Is this code right? In this code, id is a combination of country and industry, so once I included "id_*" in the code, I do not have to include country_* or industry_*, because they had been fixed through "id_*", right?
Then how to write code with RE?
All the Best,
Meng

Comment