How does rats solve a system of quadratic equations

Use this forum to post questions about syntax problems or general programming issues. Questions on implementing a particular aspect of econometrics should go in "Econometrics Issues" below.

How does rats solve a system of quadratic equations

Postby ivory4 » Sun Jun 27, 2010 1:20 am

In some cases, we need to identify coefficients by using undetermined coefficients.
Like Morley Nelson Zivot MNZpaper, reduced form coefficients are identified by autocovariance.
To solve this system, I have a system of three quadratic equations. Is there a procedure for solving such system?
ivory4
 
Posts: 149
Joined: Mon Aug 24, 2009 12:16 pm

Re: How does rats solve a system of quadratic equations

Postby TomDoan » Sun Jun 27, 2010 8:35 am

Use FIND MINIMUM with the criterion function being the absolute value or squared deviation between the actual and calculated values. For instance:

Code: Select all
nonlin sigsq theta
compute c0=135.0,c1=55.0
compute sigsq=135.0,theta=0.0
find min abs(c0-sigsq*(1+theta^2))+abs(c1-sigsq*theta)
end min
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm


Return to Help With Programming

Who is online

Users browsing this forum: No registered users and 0 guests

cron