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

From |
Frank Gallo <fjgallo@mac.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: re: tsset with non-integers |

Date |
Thu, 07 May 2009 17:07:22 -0400 |

<>

Best, Frank On May 7, 2009, at 1:32 PM, John Antonakis wrote:

HTH, John. ____________________________________________________ Prof. John Antonakis Associate Dean Faculty of Business and Economics University of Lausanne Internef #618 CH-1015 Lausanne-Dorigny Switzerland Tel ++41 (0)21 692-3438 Fax ++41 (0)21 692-3305 Faculty page: http://www.hec.unil.ch/people/jantonakis&cl=en Personal page: http://www.hec.unil.ch/jantonakis ____________________________________________________ On 07.05.2009 19:02, Frank Gallo wrote:

<>SPSS offers users the post regression estimation option to test theindependence of residuals terms using the Durbin-Watson test so thatusers can check the independence assumption. My data are not of thetime series type. As a stata beginner, I am trying to learn a stataequivalent approach. Thank you.Best, FrankOn Thursday, May 07, 2009, at 09:47AM, "Nick Cox" <n.j.cox@durham.ac.uk> wrote:Why can't you -tsset- the data?If your data are time series, you should know the times (dates).Specify the time variable to -tsset-.If they aren't, then serial correlation is presumably not definedor applicable anyway.Nick n.j.cox@durham.ac.uk Frank Gallo Hi Eva,The way I understood Kit's response was that both suggestedapproaches (estat bgodfrey and wntestq) require the user to tssetthe data, which I cannot do. I am looking to test theautocorrelation of residuals terms so that I can check theregression assumption of indepence of errors. Thank you.On Thursday, May 07, 2009, at 09:31AM, "Eva Poen"<eva.poen@gmail.com> wrote:Frank, please tell us what you don't understand about the replies you have got so far. Kit gave recommendations for testing for autocorrelationin residuals. If it is serial correlation that you are after, youhavetime series (or panel) data, and should tell Stata about it, usingthe-tsset- command. See -help tsset-.If it is not serial correlation but some other kind of dependence,youneed to be more specific about the type of data you have. Kit discouraged the use of -durbinh-, but if you insist on using it anyway, you need to -tsset- your data first. In any case, residualsare very unlikely to be integers. Your _time_ variable (e.g. yearsorquarters or months) could be integer. But that has nothing to dowithyour residuals. Eva 2009/5/7 Frank Gallo <fjgallo@mac.com>:<> Hi Nick & Kit,Thank you for your responses. My goal is only to check theindependence of residual terms following a regression run. Myreading of the durbinh command lead me to believe that it wouldhelp me achieve my goal. Can you suggest an alternative option tocheck the independence of residual terms that are non-integers?Thank you.Best, FrankOn Thursday, May 07, 2009, at 06:32AM, "Kit Baum" <baum@bc.edu>wrote:<> Frank saidWhat I would like to do, which I cannot find exactly in thearchives,is to check the independence of the residual terms (e) from a regression. I would like to run the -durbinh- command... Nick Cox answered the technical question re -tsset-. I do notrecommend you rely on the -durbinh- command. It is a specialcase ofthe Breusch-Godfrey test in which you only consider AR(1) vsi.i.d.The -estat bgodfrey- postestimation command allows you to test forhigher-order autocorrelation as well (which might well bepresent evenif an AR(1) coefficient is insignificant). Also consider using - wntestq-, which is an unconditional test of the residuals'autocorrelation function. (B-G is a conditional test in that itusesthe X matrix from the regression, whereas the Lung-Box-Pierce"Q" testmay be applied to any time series). All will require that thedata areproperly -tsset-.

* * 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/

**Follow-Ups**:**Re: st: re: tsset with non-integers***From:*John Antonakis <john.antonakis@unil.ch>

**References**:**st: re: tsset with non-integers***From:*Kit Baum <baum@bc.edu>

**Re: st: re: tsset with non-integers***From:*Frank Gallo <fjgallo@mac.com>

**Re: st: re: tsset with non-integers***From:*Eva Poen <eva.poen@gmail.com>

**Re: st: re: tsset with non-integers***From:*Frank Gallo <fjgallo@mac.com>

**RE: st: re: tsset with non-integers***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**RE: st: re: tsset with non-integers***From:*Frank Gallo <fjgallo@mac.com>

**Re: st: re: tsset with non-integers***From:*John Antonakis <john.antonakis@unil.ch>

- Prev by Date:
**st: re: VAR command with panel data** - Next by Date:
**st: Type mismatch in while and somes issues with statalist** - Previous by thread:
**RE: st: re: tsset with non-integers** - Next by thread:
**Re: st: re: tsset with non-integers** - Index(es):

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