Many thanks for the help. I tried to package the function following the manual's instruction. That's when I realized that I am too ignorant of GRETL's architecture. I was absolute incompetent in doing so. I think I'll have to read more carefully the manual (and from the first page). Anyway, thanks a lot,