On Wed, 14 Dec 2011, Sven Schreiber wrote:
On 12/14/2011 11:24 AM, alexkakashi(a)libero.it wrote:
> Hi,
> I have the following problem. I should estimate a VAR model in which some
> parameters are constrained. How can I restrict some coefficients equal to 0 in
> gretl?
set up a SUR system:
system method=sur
equation ...
equation ...
equation ...
....
end system
The equation specifying syntax is like for a normal equation.
We should probably enable the "restrict" command for VARs at
some point, but as Sven says you can do this as an SUR system.
Here's a trivial example:
<hansl>
open data9-7
# set up the common regressors
list X = const INCOME(-1 to -4) PRIME(-1 to -4)
varsys <- system
equation INCOME X
equation PRIME X
end system
restrict varsys
b[1,2] - b[2,2] = 0
end restrict
estimate varsys method=SUR
</hansl>
Allin Cottrell