[Gretl-users] trouble with matrix functions
nadaud at centre-cired.fr
nadaud at centre-cired.fr
Fri Feb 1 09:24:03 EST 2008
Dear all listers
As I wrote yesterday, here is my script and part of my data (a sample of
500 households).
The following script does system estimation by ITSUR on two variables
home energy and motorfuel.
then I compute elasticities for each household. Initially i intended to
do it with matrix commands only. But as I encountered the problem i
resorted to saving the fitted values and using genr commands.
However, after these command the script computes those same elasticities
but with matrix commands.
So let ei = income elasticity for equation i
I have eih = 1 + beta[i] / what[i,h]
essentially i generate the vector of ones vecun = ones(500,1) then
compute b = beta[i] * (1/what[i,h]) to finally add them :
ei = vecun + b
but here gretl do not want to add those two vectors.
you can see it by yourself executing the script.
Notes :
1) i am under 1.7.1 just installed yesterday. The problem persists
2) in system estimation, the matrix accessors are a bit different. There
is an extra line & column in $vcv and $coeff but I do not remember what
it is exactly althrough it seems to be related to ML ?
greetings and see ya !
sincerly
Franck
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AIDS_data_set.gdt
Type: application/x-gretldata
Size: 23631 bytes
Desc: not available
Url : http://lists.wfu.edu/pipermail/gretl-users/attachments/20080201/19778663/AIDS_data_set-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AIDS_data_set.gdt~
Type: application/octet-stream
Size: 31399 bytes
Desc: not available
Url : http://lists.wfu.edu/pipermail/gretl-users/attachments/20080201/19778663/AIDS_data_set-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LAIDS_script.inp
Type: application/x-gretlscript
Size: 2812 bytes
Desc: not available
Url : http://lists.wfu.edu/pipermail/gretl-users/attachments/20080201/19778663/LAIDS_script-0001.bin
More information about the Gretl-users
mailing list