[Gretl-users] Generating a series with an if condition

Raz Lev raz_lev at yahoo.com
Fri Apr 10 04:06:16 EDT 2009


hi
I am trying to run the following:

genr monthly_w_c = if (V4 < 6) V49/1000 else V49 endif


and am getting an error "The symbol 'if' is undefined"

is there a way to generate the series in one command or do I need to create a list of 1/1000s and 1s and multiply?

thanks


"I often see problems in the world and wonder why someone doesn't fix them. Then I realize that I am someone, and that makes me feel bad because it is all my fault."
http://dilbert.com/blog/entry/fixing_the_world/


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wfu.edu/pipermail/gretl-users/attachments/20090410/6b67df88/attachment.htm


More information about the Gretl-users mailing list