Hi,
I wish to run some line graphs using sepscatter to identify outliers. I want to run this for every location number in a variable entitled "location". My sample code is below:
```
sepscatter revenue monthly if inlist(location, 233, 234, 235, 236, 239, 240), sep(location) recast(line) lc(blue orange black red green purple grey)
graph export "C:\Users\jscot\Desktop\graphs", as(png) replace
```
How would I either 1) loop this for every location, or 2) loop this but in groups of 5 so that I can have less graphs?
I am okay with either method. The self help docs I found online didn't seem to be what I was looking for, so I figure I would go to the experts.
Thank you!
I wish to run some line graphs using sepscatter to identify outliers. I want to run this for every location number in a variable entitled "location". My sample code is below:
```
sepscatter revenue monthly if inlist(location, 233, 234, 235, 236, 239, 240), sep(location) recast(line) lc(blue orange black red green purple grey)
graph export "C:\Users\jscot\Desktop\graphs", as(png) replace
```
How would I either 1) loop this for every location, or 2) loop this but in groups of 5 so that I can have less graphs?
I am okay with either method. The self help docs I found online didn't seem to be what I was looking for, so I figure I would go to the experts.
Thank you!
Comment