SCM

Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: 3SLS with panel data - val(predvars, data, env) : object '<VARIABLE>' not found [ reply ]
By: M. P. on 2018-12-26 17:29
[forum:46477]
Thank you very much for fixing this. :)

RE: 3SLS with panel data - val(predvars, data, env) : object '<VARIABLE>' not found [ reply ]
By: Arne Henningsen on 2018-11-17 12:23
[forum:46424]
Thanks for your message ... and for making me aware of that 2SLS and 3SLS (instrumental variable) estimations had not been implemented for panel yet! I have implemented this in the current development version of the systemfit package. You can access this development version via SVN [1] or install it directly with the command 'install.packages("systemfit", repos="http://R-Forge.R-project.org")' as soon as R-Forge has built the package for revision 1162 or higher [2]. Please note that you must specify the instruments with the command 'INSTR <- as.formula(paste( " ~ ", paste(instruments, collapse="+")))' rather than with the command in the R script that you attached.

[1] http://r-forge.r-project.org/scm/?group_id=242

[2] http://r-forge.r-project.org/R/?group_id=242

3SLS with panel data - val(predvars, data, env) : object '<VARIABLE>' not found [ reply ]
By: M. P. on 2018-10-30 17:52
[forum:46393]

Code.R (4) downloads
Hello,

I have an economic dataset with a panel structure. I want to estimate the coefficients of the system using 3SLS estimator (pooled estimate). I have no problems estimating the coefficient using SUR. But, when I change the method to 3SLS I get the following error (related to instruments): Error in eval(predvars, data, env) : object 'gdp_capita' not found . However gdp_capita is clearly inside my dataset.

I would appreciate some help with this, thank you very much in advance.

P.S. I am attaching a reprex with data.

Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge