Dear gretl users,
have a question about the use the "smpl full" inside a function
suppose this case:
nulldata 50
smpl 1 40
smpl full
series t1=time
scalar nt=lastobs(t1)
in a script these commands produce:
Generated scalar nt = 50
But if I write something like this:
nulldata 50
smpl 1 40
function scalar example (----)
smpl full
series t1=time
scalar nt=lastobs(t1)
end function
the scalar is nt=40. The question: there is some trick to recover the
full sample inside a function or the last value of the original full
sample without specify any argument about it in the function
declaration?
Best Regards
Federico Lampis