Franck Nadaud schrieb:
Hello Gretl folks, greetings from Paris !
Now returning to GRETL, for (I hope) a while, I have a minor report to submit.
I am currently preparing data for a cross-section demand system estimation
(AIDS or QAIDS stuff) on a large survey file (~10.000 observations). To avoid
clumsy and repetitive (and error prone) action, I decided to use the gretl
variable list concept. However, one I haved defined my list and I want to do
computations, gretl manifested the following minor problem:
When I use the following script:
list ALL = dataset
list NON_DEP = 1 2 237 238 239 240 241 242 243
list DEP = ALL - NON_DEP
nel = nelem(DEP)
series DEPTOT = sum(DEP)
gretl says: argument should be series, is list, but it seems ok on the manual,
chapter 11 on lists and computations.
However, when I try this dirty little trick:
list ALL = dataset
list NON_DEP = 1 2 237 238 239 240 241 242 243
list DEP = ALL - NON_DEP
nel = nelem(DEP)
series DEPTOT = mean(DEP)*235
all runs smooth and well !
Well, it's ok for me, but looks like a minor bug nope ?
I agree it looks like a bug in sum() whereas mean() seems to work as
advertised. (as do min(), max(), sd() and var() BTW)
-sven