estimate and estimate(model=....

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.
airways1
Posts: 5
Joined: Thu Apr 10, 2008 3:17 pm

estimate and estimate(model=....

Unread post by airways1 »

The model is specified follow,

linreg(define=longeqn) y
# constant x
system(model=m2)
variables x y z
lags 1 to 2
det d_x1 constant
ect longeqn
end(system)

estimate ;*<<----------OK
estimate(model=m2) 1 100 ;*<<----------- NOT OK; (insteaded the ect model is estimated, the var model did.)

i need to use the second instruction, since i have different model in a loop. I am not sure if this is a winrats bug, but i need a solution. Please help. thanks.
moderator
Site Admin
Posts: 269
Joined: Thu Oct 19, 2006 4:33 pm

Re: estimate and estimate(model=....

Unread post by moderator »

The ECT doesn't "follow" the MODEL data type, so you can only have model using ECT at a time. How are you using the two models? It only matters if you're using ESTIMATE on both, and the OLS model can be estimated with SUR(MODEL=...) instead.
airways1
Posts: 5
Joined: Thu Apr 10, 2008 3:17 pm

Re: estimate and estimate(model=....

Unread post by airways1 »

system(model=m1)
.
ect longeqn1
end

system(model=m2)
.
ect longeqn2
end(system)
.
.
.
(some orther code)
.
estimate(model=m1);<<--generating VAR(m1) result,not VAR with ect result.
;if i type "estimate" without model name, it give me VAR(m2). But I need the result of
VAR(m1)'s ect result.
any suggestion?
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: estimate and estimate(model=....

Unread post by TomDoan »

Is there any reason you can't do

Code: Select all

system(model=m1)
...
end(system)
estimate
*
system(model=m2)
...
end(system)
estimate
airways1
Posts: 5
Joined: Thu Apr 10, 2008 3:17 pm

Re: estimate and estimate(model=....

Unread post by airways1 »

reason is simple,check out the following function:

function mdl
type model mdl
.
.
estimate(model=mdl)
.
end

now whether I call this function with either ect type or not , the result is not ect result.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: estimate and estimate(model=....

Unread post by TomDoan »

You'll have to post the whole program; I can't really give you a workaround without it.
Post Reply