Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: line graph with confidence interval

From   "Nick Cox" <>
To   <>
Subject   RE: st: line graph with confidence interval
Date   Mon, 25 Apr 2005 12:42:34 +0100

Note that -xtgraph- is a user-written program on SSC. 
It does not support Stata 8 or Stata 9 graphics. 

In addition, doing it yourself is an option. For 
example, something like 

egen meanvar = mean(var), by(year) 
line meanvar year 

gives you means against a time variable (in this 
case -year-). Given upper and lower limits, 

twoway line meanvar year || rcap upper lower year

gives you the intervals as well. And so forth. 


Roger Newson
> This can be done using the -eclplot- package (to plot the confidence 
> intervals), possibly together with -parmest- (to create a 
> dataset with one 
> observation per confidence interval for input to -eclplot-). 
> Both packages 
> can be downloaded from SSC using the -ssc- command.

George M Hoffman MD 

> xtgraph 

Maria Rosaria Agostino 

> does anyone of you know how to get a line graph for the mean 
> of a variable
> against the time, along with a two standard deviation 
> confidence interval, 
> and the possibility to insert vertical and horizontal lines?

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index