Use comparison '==' and not the assignment symbol '=' in the if clause.
Dear Gretl community,
I keep getting errors on my if statements. The program responds "error evaluating if", as if it doesn't recognize the command, yet turns red when i type it.
Here's the code I am using:
if state=13
delta=.38
elif state=16
delta=.35
elif state=31
delta=.30
elif state=84
delta=.26
else delta=0
endif
I've been over the syntax in the user manuals and cannot understand what I am doing wrong. Any insights on this issue are greatly appreciated. Thanks.
_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users