Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[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 <mandy.fu1@gmail.com>
To   statalist@hsphsun2.harvard.edu
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 <n.j.cox@durham.ac.uk> 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
> n.j.cox@durham.ac.uk
*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index