[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: How to transfer a variable's value into a macro (in a paneldataset)
you can't use -by- for setting locals because you can only have one value for
each local value. i can only equals to one thing, it's not like a variable in
the dataset which can carry multiple values.
what are you trying to do anyway? if you tell us what you're actually trying to
do then may be someone can work out the solution for you.
Robin Luo wrote:
I know that a command like:
local i = var[`n']
can obtain the nth observation's value into macro i. But my data is a
panel data and I want the nth observation within a certain group into
the macro i, instead of that of the nth observation in general.
Obviously, "local" cannot be used with "by" and I could not figure out
a way to do this. If any one has any idea on this, I would really
* For searches and help try: