Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Run ADF Test, ERROR NO OBSERVATION

    Guys, I'm trying to run ADF test on usacpi on a monthly basis.Image 1 shows the time variable(I've done tsset),second image shows the cpi data for usa, the third is the error:No Observation
    Click image for larger version

Name:	8376EA85-3BC0-4640-90D9-7B7BE332B011.jpg
Views:	1
Size:	37.9 KB
ID:	1423426
    Click image for larger version

Name:	73499928-FBB5-4B70-90B6-A207B335D9F3.jpg
Views:	1
Size:	26.5 KB
ID:	1423427
    Click image for larger version

Name:	50AE73AA-E093-42CC-8452-B44E4E975120.jpg
Views:	1
Size:	10.4 KB
ID:	1423428


  • #2
    You have shown us so little of your process, and have shown pictures rather than text that could be used to reproduce your work in Stata, that we're reduced to guessing.

    In this case, you show what is clearly monthly data but stored as if it were daily data. I'd guess that tsset probably tried to tell you that your series had gaps in it, because it's daily with missing days. You will need to convert it from its current form as a Stata Internal Format (SIF) daily date to a SIF monthly date.

    Stata's "datetime" variables are complicated and there is a lot to learn. If you have not already read the very detailed Chapter 24 (Working with dates and times) of the Stata User's Guide PDF, do so now. If you have, it's time for a refresher. After that, the help datetime documentation will usually be enough to point the way. You can't remember everything; even the most experienced users end up referring to the help datetime documentation or back to the manual for details. But at least you will get a good understanding of the basics and the underlying principles. An investment of time that will be amply repaid.

    All Stata manuals are included as PDFs in the Stata installation (since version 11) and are accessible from within Stata - for example, through the PDF Documentation section of Stata's Help menu.

    Beyond that, to make your future posts to Statalist more useful to those whose help you seek, please review the Statalist FAQ linked to from the top of the page, as well as from the Advice on Posting link on the page you used to create your post. Note especially sections 9-12 on how to best pose your question, and how to present sample data and results on Statalist.

    The more you help others understand your problem, the more likely others are to be able to help you solve your problem.

    And, finally, "guys" is an informal term specific to the male gender; clearly you don't mean to exclude the women members of Statalist from helping you, so you'd be better off choosing a more inclusive term, or omitting the preface entirely.
    Last edited by William Lisowski; 22 Dec 2017, 10:50.

    Comment

    Working...
    X