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 on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: plot confidence intervals with time series

From   Christopher Baum <>
To   "" <>
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 Baum   |   Boston College Economics & DIW Berlin   |
                             An Introduction to Stata Programming  |
  An Introduction to Modern Econometrics Using Stata  |

*   For searches and help try:

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