Page 1 of 1

how i code this equation for ols

Posted: Mon Jul 07, 2014 6:57 am
by Muhammad Riaz
se=(1-(c(3)/(c(3)+c(4))))*(c(10)*tr+c(20)*a1+c(30)*a2)-(c(4)/(c(3)+c(4)))*cet+(c(3)/(c(3)+c(4)))*set
what was wrong in this equation. when i try to estimate eviews produce error message"division by zero"

Re: how i code this equation for ols

Posted: Mon Jul 07, 2014 8:12 am
by EViews Gareth
Change the starting values in the C vector before estimating.

Just do something like:

Code: Select all

c=0.1
in the command window.

Re: how i code this equation for ols

Posted: Mon Jul 07, 2014 4:15 pm
by Muhammad Riaz
thank you so much. your tip is working but know eviews produce message "near singular matrix". how i can resolve this issue?

Re: how i code this equation for ols

Posted: Mon Jul 07, 2014 8:40 pm
by EViews Gareth
Try different starting values