by moderator » Wed Apr 11, 2012 10:31 am
You don't need or want the type modifier (the [series] tag) on the LOG instruction. You would just do:
log i / lx
For an instruction like this, RATS knows that the first parameter has to be a series, so if you supply an integer, it automatically treats it as a series number.
RATS can't make that assumption when an integer appears on the right side of a SET instruction (it has no way of knowing that you mean for an integer to refer to a series number). That's why you would need to add lag notation or a type modifier:
set lx = log(i{0})
or
set lx = log([series] i)
Any of the three above commands is correct. If you are still getting missing values in all entries for LX using any of these, then the source of the problem lies elsewhere. The first step would be to check the original series. For example, do:
print / australia canada france germany japan netherlands uk us
Do the data look correct? If not, work back from there to see where you've made a mistake.
Regards,
Tom Maycock
Estima