Dear all,

I am doing a research on the effect of exchange rate on FDI in the US with a panel data with Individuals being countries. I am having some trouble in R when using the fixed effect code. R drops the variables that do not vary across countries such as GDP in the US and dummy variable controlling for certain global crisis. Is there a way to remediate to that ? I have done the Hausman test and the Random effect model can be used. Does that mean I can only model it with the Random effect ?

My current code is :

plm(Y - X , data=pdata, index=c(“Country”,”Date”), model=”within”)

Thank you.

note : I am not a panel expert and my research for my bachelor.

More Charlotte Cottier's questions See All
Similar questions and discussions