My observations are Country - Year [CCODE, YEAR]
For each CCODE - YEAR, I have variables for:
What I want to do seems like it would treat my data as an array. Something like:
I've searched for help with arrays, but I haven't (yet) found what I am looking for.
Can someone point me in the right direction?
Thanks for the help.
For each CCODE - YEAR, I have variables for:
- Whether human trafficking criminalization was extant [HTEX] (I have multiple extancy variables, but if I can solve the problem with one, I can solve it with all of them.)
- Ratio of total trade with [country] (that is, I have ~190 ratio variables) [e.g, RTT_USA]
What I want to do seems like it would treat my data as an array. Something like:
- replace RTT_USA = HTEX (at CCODE==2 & YEAR==_N) * RTT_USA
I've searched for help with arrays, but I haven't (yet) found what I am looking for.
Can someone point me in the right direction?
Thanks for the help.
Comment