<>
Just -collapse- the data -by- your group identifier and the time variable
and then draw them...
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von
[email protected]
Gesendet: Mittwoch, 10. Juni 2009 12:56
An: [email protected]
Betreff: st: Graphics with averages of variables (over other variables)
Hello,
I would like to create "twoway connected" graphics of a variable called
"myredpts" on the Y-axis and the variable "period" on the X-axis.
"myredpts", however, should be averaged over several "subjects"
belonging to the same "group", for each "period".
I use the command: "twoway (connected mean(myredpts) period) if
treatment == 1, by(group)" which is apparently wrong because of the
"mean"... If I skip mean and use only "twoway (connected myredpts
period) if treatment == 1, by(group)" then stata draws in each period
several points for several subjects and connects them, I, however, want
Stata to draw only one single data point for each group consisting of 4
subjects in each period and connect these for the consecutive 20 periods.
Thank you very much for your help!
Ozgur
--
Dr. Özgür Gürerk
Lehrstuhl für Mikroökonomie & Laboratorium für experimentelle
Wirtschaftsforschung
(Microeconomics & Laboratory for Experimental Economics)
Universität Erfurt, Nordhäuser Str. 63, D-99089 Erfurt
Tel: +49 361 7374561
Fax: +49 361 7374569
www.uni-erfurt.de/elab
--
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/