Nl GMM help
Posted: Fri Aug 28, 2015 9:10 am
I am trying to simultaneously estimate two nonlinear equations using GMM. I have entered in the equations but keep receiving 'error 4194303'. Could you please tell me why I am receiving this error and if my syntax is correct:
milkproduction=c(1) +c(2)*farmgateprices +c(3)*averagefeedprice +c(4)*freshlycalvedhelferspric +c(5)*iherd +c(6)*time +1/2*(c(6)*(farmgateprices*averagefeedprice) +c(7)*(farmgateprices*freshlycalvedhelferspric) +c(8)*(freshlycalvedhelferspric*averagefeedprice)) +c(9)*(farmgateprices*time) +c(10)*(averagefeedprice*time) +c(11)*(freshlycalvedhelferspric*time) +c(12)*(iherd*time)
farmgateprices=priceofdairyproducts*(c(13) +c(14)*milkproduction +c(15)*monthlywage +c(16)*electricitypurchaseprice +c(17)*realinterestrate +c(18)*priceofdairyproducts)
Thank you,
Sush
milkproduction=c(1) +c(2)*farmgateprices +c(3)*averagefeedprice +c(4)*freshlycalvedhelferspric +c(5)*iherd +c(6)*time +1/2*(c(6)*(farmgateprices*averagefeedprice) +c(7)*(farmgateprices*freshlycalvedhelferspric) +c(8)*(freshlycalvedhelferspric*averagefeedprice)) +c(9)*(farmgateprices*time) +c(10)*(averagefeedprice*time) +c(11)*(freshlycalvedhelferspric*time) +c(12)*(iherd*time)
farmgateprices=priceofdairyproducts*(c(13) +c(14)*milkproduction +c(15)*monthlywage +c(16)*electricitypurchaseprice +c(17)*realinterestrate +c(18)*priceofdairyproducts)
Thank you,
Sush