In tsls.c
MODEL tsls (const int *list, DATASET *dset, gretlopt opt)
have first
tsls.errcode = ivreg_process_lists(list, ®list, &instlist);
and only than
reglist_check_for_const(reglist, dset);
That's why under just identification
tsls gives error and do not have
a possibility to add const
Oleh
10 жовтня 2017, 19:37:02, від "Riccardo (Jack) Lucchetti"
<r.lucchetti(a)univpm.it>:
On Tue, 10 Oct 2017, > oleg_komashko(a)ukr.net wrote:
> mt1 <- tsls y 0 y1 y2 x1 x2; x1 x2 z1 z2 z3
> mt1a <- tsls y 0 y1 y2 x1 x2; 0 x1 x2 z1 z2 z3
> # mt1 and mt1a gives the same
If this is what surprises you, there is a very simple explanation: if
there is a constant among the regressors but not among the instruments, it
is added automatically. This makes good sense to me, but in fact someone
(I can't remember whether it was Allin or myself) added the following
comment in the C source (line 386 in tsls.c, if anyone's interested):
/* found const in reglist but not instlist:
needs fixing -- or is this debatable? */
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti@univpm.ithttp://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------
_______________________________________________
Gretl-devel mailing list
Gretl-devel@lists.wfu.eduhttp://lists.wfu.edu/mailman/listinfo/gretl-devel