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: plot confidence intervals with time series
From
Christopher Baum <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: plot confidence intervals with time series
Date
Sat, 22 Dec 2012 12:03:37 +0000
<>
Seems twoway lfitci is not too smart about format of the X-variable, so you need to tell it:
webuse rates.dta, clear
global x1 dow
format date %td
tsset date
global t date
/* Construct a 95 percent confidence interval, attempt 1 */
graph twoway (lfitci $x1 $t, xlab(,format(%td))) (scatter $x1 $t)
Kit
Kit Baum | Boston College Economics & DIW Berlin | http://ideas.repec.org/e/pba1.html
An Introduction to Stata Programming | http://www.stata-press.com/books/isp.html
An Introduction to Modern Econometrics Using Stata | http://www.stata-press.com/books/imeus.html
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/