Using 'crossid' to name "panel units" (region)
Posted: Fri Mar 17, 2017 11:28 am
Hi,
I am trying to create a panel data set, and I want to assign names to the regions for which I have data. My code looks something like this:
wfcreate(wf=annual) a 1981 2015 10
alpha region
if crossid=1 then
region=region_name
endif
However, this doesn't work to assign names to the region variable, as I would like, and I don't understand why. What's strange is that if I create some other series, say q, assign it some arbitrary value, and use it in lieu of 'region', then the code works fine. However, that does not work if, rather than assigning it an arbitrary value, I set it equal to crossid.
Thanks,
Marc
I am trying to create a panel data set, and I want to assign names to the regions for which I have data. My code looks something like this:
wfcreate(wf=annual) a 1981 2015 10
alpha region
if crossid=1 then
region=region_name
endif
However, this doesn't work to assign names to the region variable, as I would like, and I don't understand why. What's strange is that if I create some other series, say q, assign it some arbitrary value, and use it in lieu of 'region', then the code works fine. However, that does not work if, rather than assigning it an arbitrary value, I set it equal to crossid.
Thanks,
Marc