Hi, I am having trouble with writing a loop. My dataset involves 40 states, and approximately 700 observations in each state. I need to generate a loop that does the following:
Thanks in advance for your help
- Identify pairs of states, one at a time.
- Calculate the necessary mins for those pairs of states, likely using rowmin depending on how the first problem is solved.
- Generate the various alignment indices (this is equal to the sum of minima across all of the observations, which would be using the total function)
- Drop the mins
- Move on to the next pair and do it again.
Thanks in advance for your help
Comment