Statalist


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

Re: st: RE: "fcast graph" does not recognize an already variable in the data set after commands: "var" and " fcast compute"


From   "David M. Drukker" <[email protected]>
To   [email protected]
Subject   Re: st: RE: "fcast graph" does not recognize an already variable in the data set after commands: "var" and " fcast compute"
Date   Thu, 20 Aug 2009 16:24:15 -0500 (CDT)

-fcast graph- is not doing what Eleftherios Demetriou
<[email protected]> wants.

The problem is that -fcast graph- assumes that there are variables
containing the bounds of the confidence interval (CI), unless the -noci-
option is specified.

Eleftherios should either specify the -noci- option for -fcast graph- or
should request a bootstrapped CI from -fcast compute-

We will look into making -fcast graph- be more accommodating when the CI
variables are not in the dataset.

Here are examples of two solutions for Eleftherios.

The first, and simpler solution, simply adds the -noci- option to -fcast graph-

. clear all

. webuse lutkepohl
(Quarterly SA West German macro data, Bil DM, from Lutkepohl 1993 Table E.1)

. quietly var dlincome dlconsumption in 1/80, exog(dlinvestment)

. fcast compute f_, step(9)
asymptotic standard error not available with exogenous variables

. fcast graph f_dlincome , observed noci name(noci)

This method will produce a graph of the form Eleftherios requested.

The second method has -fcast compute- produce a bootstrapped estimate
of the CI.

. drop f_*

. fcast compute f_, step(9) bs reps(250)
asymptotic standard error not available with exogenous variables
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
(output omitted)

. fcast graph f_dlincome , observed name(withci)

The method will produce a graph including a bootstrapped estimate of
the CI.

  --David
  [email protected]


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index