Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: RE: graphing the lines of the mean for a variable by groups over time
From
Mandy fu <[email protected]>
To
[email protected]
Subject
Re: st: RE: graphing the lines of the mean for a variable by groups over time
Date
Fri, 12 Mar 2010 13:32:07 -0500
Dear Mr. Cox,
Thanks so much for your help! I did miss the mean part. It worked well
when using --egen-- to get the mean of Y_hat, and then plotting mean
of Y_hat by groups over time.
Again, thanks for helping me out.
Mandy
On Fri, Mar 12, 2010 at 1:11 PM, Nick Cox <[email protected]> wrote:
> Nothing in your code instructs Stata to work with means. You are
> instructing Stata to plot all the values for all the panels. You should
> not be surprised that it does precisely that.
>
> There are various ways to proceed. One is to -collapse- to means and
> then plot the results.
>
> Nick
> [email protected]
*
* 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/