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: twoway line with mean and quartiles
From 
 
Nick Cox <[email protected]> 
To 
 
[email protected] 
Subject 
 
Re: st: twoway line with mean and quartiles 
Date 
 
Thu, 27 Jan 2011 13:15:07 +0000 
egen mean = mean(unemploy), by(year)
egen loq = pctile(unemploy), p(25) by(year)
egen upq = pctile(unemploy), p(75) by(year)
line mean loq upq year
I'd want to see at least the median and extremes as well if you were
my student!
Nick
On Thu, Jan 27, 2011 at 12:45 PM, Morten Støver <[email protected]> wrote:
> Hi. I'm new to both Stata and Statalist. My first question probably quite
> simple. I have a dataset with follow-up time from 1990 to 2007 for various
> municipalities. I want a graph that shows me mean level of unemployment for
> ALL the municipalities for each year through the follow up period, and I
> also want the lower and upper quartiles to be shown. It guess should be
> something like  twoway (line unemployment year)  but how to get only three
> lines with mean and quartiles?
*
*   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/