Allin, Excellent - thanks for the solution to this. It's working now!
Please also remember that I have an question outstanding on reviewing -gretl- (even though most of it was comment!) Clive On 31 January 2013 01:27, Allin Cottrell <cottrell(a)wfu.edu> wrote: > On Wed, 30 Jan 2013, Clive Nicholas wrote: > > [ in response to > http://lists.wfu.edu/pipermail/gretl-users/2013-January/008536.html > ] > > > > Thank you for this: it did indeed work for the example you gave > (including > > Jack's later correction). > > > > However, when I ran this for my own (unbalanced) panel dataset (N=47, > T-36, > > NT=823), -gretl- choked: > > Some of your regressors have been dropped as redundant, so the list > X that you gave on input does not match in dimension the coefficient > vector. In this case you can use the accessor $xlist to get the list > of actually included regressors (but you have to remove the > constant): > > <hansl> > series ai = $ahat > series Xb = lincomb($xlist - const, $coeff[2:]) > corr ai Xb > </hansl> > > Allin Cottrell > > _______________________________________________ > Gretl-users mailing list > Gretl-users(a)lists.wfu.edu > http://lists.wfu.edu/mailman/listinfo/gretl-users > -- Clive Nicholas (clivenicholas.posterous.com) [Please DO NOT mail me personally here, but at <clivenicholas(a)hotmail.com>. Please respond to contributions I make in a list thread here. Thanks!] "My colleagues in the social sciences talk a great deal about methodology. I prefer to call it style." -- Freeman J. DysonAllin,
Excellent - thanks for the solution to this. It's working now!
Please also remember that I have an question outstanding on reviewing -gretl- (even though most of it was comment!)
Clive
--
Clive Nicholas (clivenicholas.posterous.com)
[Please DO NOT mail me personally here, but at <[email protected]>. Please respond to contributions I make in a list thread here. Thanks!]
"My colleagues in the social sciences talk a great deal about methodology. I prefer to call it style." -- Freeman J. Dyson
On 31 January 2013 01:27, Allin Cottrell <[email protected]> wrote:
On Wed, 30 Jan 2013, Clive Nicholas wrote:
[ in response to
http://lists.wfu.edu/pipermail/gretl-users/2013-January/008536.html
]Some of your regressors have been dropped as redundant, so the list
>
> Thank you for this: it did indeed work for the example you gave (including
> Jack's later correction).
>
> However, when I ran this for my own (unbalanced) panel dataset (N=47, T-36,
> NT=823), -gretl- choked:
X that you gave on input does not match in dimension the coefficient
vector. In this case you can use the accessor $xlist to get the list
of actually included regressors (but you have to remove the
constant):
<hansl>
series ai = $ahat
series Xb = lincomb($xlist - const, $coeff[2:])
corr ai Xb
</hansl>
Allin Cottrell
_______________________________________________
Gretl-users mailing list
[email protected]
http://lists.wfu.edu/mailman/listinfo/gretl-users
Clive Nicholas (clivenicholas.posterous.com)
[Please DO NOT mail me personally here, but at <[email protected]>. Please respond to contributions I make in a list thread here. Thanks!]
"My colleagues in the social sciences talk a great deal about methodology. I prefer to call it style." -- Freeman J. Dyson
