I am not clear precisely what kind of graph
you want, but your structure seems to lend itself to
some kind of loop. I'll guess that -IND- is string.
levels IND, local(I) clean
foreach i of local I {
scatter P? Q if IND == "`i'", subtitle(`i') saving(`i')
more
}
See also
http://www.stata.com/support/faqs/data/foreach.html
Nick
[email protected]
Rafael Bertola
> I have one data set like the one below.
>
> IND Q P1 P2 P3 (...)
> -------------------------------------------------
> p1a1 1 106,5 83,2 40,8
> p1a1 2 85 46,7 31,4
> p1a1 3 75,5 32,9 27
> p1a1 4 38,6 24,7 31,5
> p1a1 5 25,5 28,6 16,2
> p1a2 1 146,5 98,9 52,1
> p1a2 2 114,9 56 37,1
> p1a2 3 104 39,2 30,7
> p1a2 4 47,8 26,7 34,9
> p1a2 5 32 33,3 23,6
> p1a3 1 33,6 29,6 27,6
> .
> .
> .
>
> Where, IND identify a type of measure.
> Q is a indicator of first, second,... quitiles.
> and P1, P2, P3, are de measures for countrys.
>
> I want plot a twoway graph with Q on x-axis e P1, P2, P3 on y-axis.
> The dataser is big.
> How i do this in a automatic manner? Using a .do file?
> Whe the value of IND changes, one new graph is created. And
> the previous
> graphic, it can be saved on disk?
>
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/