Hi,
so I'm trying to make my function package work both with sub-sampled and
full-sampled data. This is not so easy because of gretl's behavior to
use pre-sample data for VAR/VECM estimation, if such data is available.
This means that the two cases (sub-sampled or not) have to be handled
differently. (IMHO this is bad, BTW, so taking up the issue which was
already discussed before, I still vote to always *prevent* gretl from
reaching back to pre-sample values.)
Anyway, so to deal with this issue I am using a couple of 'smpl'
shortening and re-enlarging commands in my functions, similar to the
following example:
<hansl>
function void samplecheck(int p)
smpl +p +0
loop 30
smpl -p +0
smpl +p +0
end loop
end function
samplecheck(3)
</hansl>
But I get an error message:
"Unrecognized sample command
*** error in function samplecheck"
Note that everything works fine if I don't use a loop in the example, so
the error message must be misleading.
thanks,
sven