Re: [R] 2SLS for panel data, re

2013-11-16 Thread Phdstudent2
Hi Millo Giovanni, Thanks for your response. In regards to my STATA code it would be: xi:xtiverg wecon polrightsreversed lnrgdpch execleft mulim2 c100rat c1100rat i.year (trade fdistockgdp = lnpop lnarea devcountrycomlanguage bitcum), re. Any suggestions will help so much.. Regards On

[R] 2SLS for panel data, re

2013-11-15 Thread Millo Giovanni
: Chanita Holmes chanita.hol...@gmail.com To: r-help@r-project.org Subject: [R] 2SLS for panel data, re Message-ID: CAEaD0=6skdotodbpzz19le2ca6yxbyxwp+q-gil1g+8efb2...@mail.gmail.com Content-Type: text/plain Hi, I am trying to estimate a 2sls using panel data (random effect model). I tried

[R] 2SLS for panel data, re

2013-11-14 Thread Chanita Holmes
Hi, I am trying to estimate a 2sls using panel data (random effect model). I tried the same estimation in STATA using the ivtreg2 command. However STATA and R are giving me two different results. I figure there is something with my R code: iv=plm(formula=wecon~fdistockgdp +trade +