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

st: Correlogram


From   wildstat0 <wildstat0@lycos.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Correlogram
Date   Mon, 19 Apr 2004 21:55:23 +0600

Dear All,

I am trying to get a Correlogram using Stata - How can i do it?

What i did is given in below : can any one please tell me what went wrong and how can i fix it?

I am using the data http://www.angelfire.com/ab5/get5/gujarati.txt

Any response / help / comment / suggestion / idea / web-link / replies will be greatly appreciated.

Thanks in advance for your time.

_______________________

Mohammad Ehsanul Karim <wildscop@yahoo.com>
Institute of Statistical Research and Training
University of Dhaka, Dhaka- 1000, Bangladesh
_______________________



--------------------------------------
. infix str10 YEAR 1-10 GDP 11-20 PDI 21-30 PCE 31-40 PROFITS 41-50 DIVIDENDS 51-59 using c:\gujarati.txt
. generate times = date(YEAR,"dmy")
. format times %dD.N.CY
. label data "Macroeconomic Data, United States, 1970.1 to 1991.4"
. note: Data taken from Gujarati (2003) 'Basic Econometrics' 4 th ed. Page 794
. save c:\gujarati.dta
/* This is saved in http://www.angelfire.com/ab5/get5/gujarati.dta */
. clear
. use c:\gujarati.dta
. tsset time
. corrgram GDP, lags(25)
(note: time series has 86 gaps)

-1 0 1 -1 0
> 1
LAG AC PAC Q Prob>Q [Autocorrelation] [Partial Autocor
> ]
------------------------------------------------------------------------------
> -
1 0.0000 . 0 1.0000 |
2 0.0000 . 0 1.0000 |
3 0.0000 . 0 1.0000 |
4 0.0000 . 0 1.0000 |
5 0.0000 . 0 1.0000 |
6 0.0000 . 0 1.0000 |
7 0.0000 . 0 1.0000 |
8 0.0000 . 0 1.0000 |
9 0.0000 . 0 1.0000 |
10 0.0000 . 0 1.0000 |
11 0.0000 . 0 1.0000 |
12 0.0000 . 0 1.0000 |
13 0.0000 . 0 1.0000 |
14 0.0000 . 0 1.0000 |
15 0.0000 . 0 1.0000 |
16 0.0000 . 0 1.0000 |
17 0.0000 . 0 1.0000 |
18 0.0000 . 0 1.0000 |
19 0.0000 . 0 1.0000 |
20 0.0000 . 0 1.0000 |
21 0.0000 . 0 1.0000 |
22 0.0000 . 0 1.0000 |
23 0.0000 . 0 1.0000 |
24 0.0000 . 0 1.0000 |
25 0.0000 . 0 1.0000 |

-----------------------------------------

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




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