Це відео не доступне.
Перепрошуємо.

Stata Tutorial: Testing for Autocorrelation Pt. 1

Поділитися
Вставка
  • Опубліковано 17 сер 2024

КОМЕНТАРІ • 38

  • @tanyachikanda9121
    @tanyachikanda9121 3 роки тому +2

    this vid just saved me. thank you so much, your explanation is so easy to follow, was never even told you could just paste the data code instead of downloading all 40 different data.(still crying though). again thank you Mike.

  • @rafhurffer7884
    @rafhurffer7884 3 роки тому +5

    You've saved my life and my degree, in that order

  • @sofiaalejandrabravoruiz4646
    @sofiaalejandrabravoruiz4646 2 роки тому +1

    I´m from Ecuador and this video just saved me!!!! THANK YOU

  • @vpphil
    @vpphil Рік тому +1

    Thanks Mike. Great job.

  • @jasondew1054
    @jasondew1054 3 роки тому +1

    Great video! I think k in the statistical table represents the explanatory variable (excluding the constant), hence in the example you were using, it is just 1.

  • @sky.582
    @sky.582 5 років тому +1

    Thanks man i've been struggling with Stata for a while

  • @jjgroup.investments
    @jjgroup.investments 4 роки тому +1

    Great explanation! Best Regards from Buenos Aires

  • @rabihel-habta313
    @rabihel-habta313 5 років тому +2

    Amazing professor just have one comment could after uploading any tutorial include in the video description just the links for other tutorials if mentions in the uploded video? Which will ease finding the exact videos

  • @nadiataylor626
    @nadiataylor626 3 роки тому +1

    Hi, do you know how I can test for autocorrelation in a panel data with 2Ts?

  • @daphneashba
    @daphneashba 4 роки тому +2

    When i was trying regress uhat on 1.uhat some error occurred.
    uhat: factor variables may not contain noninteger values
    r(452);

    • @mikejonaseconometrics1886
      @mikejonaseconometrics1886  4 роки тому +2

      Ahh, the lag operator is the letter “L”, which looks just like a “one” in the stata font. Use “reg uhat L.uhat”.
      A very common mistake!

    • @daphneashba
      @daphneashba 4 роки тому +1

      @@mikejonaseconometrics1886 Thank you sir .

  • @fanaaraf8663
    @fanaaraf8663 Рік тому

    Hi Mike! I have cross sectional loan data. I want to test the impact of a unique independent variable X on interest rate. I will control for loan characteristics and borrower characteristics. I also want to control for macroeconomic variables such as unemployment, bond yield etc. my macroeconomic variables are monthly data. Should I use the same test as you used here to test autocorrelation for OLS?

  • @gglucs1799
    @gglucs1799 3 роки тому +1

    thank you

  • @glendurgrantig1391
    @glendurgrantig1391 4 роки тому

    really helpful video

  • @mazenmourad9546
    @mazenmourad9546 3 роки тому

    Hi mike. How do I know whether to use xtreg or xtregar for fixed effects ??

  • @itlove9577
    @itlove9577 4 роки тому

    I just liked this tutorial - Great! At the same time, I was wondering if you could recommend a test for autocorrelation in case of cross-sectional data. Specifically, I surveyed employees from one industry - namely the IT sector. Furthermore, I do not analyse
    geographical data.

    • @mikejonaseconometrics1886
      @mikejonaseconometrics1886  4 роки тому +1

      Hi - glad you found the video helpful! It sounds like you might want to investigate "cluster-robust" standard errors for your cross sectional data. This will correct for cases of error correlated across employees in the same sector or region. In stata: reg y x,vce(cluster id). [where id is your sector variable]

    • @shelleyxueqili8165
      @shelleyxueqili8165 3 роки тому

      Thanks so much for asking this question!

    • @shelleyxueqili8165
      @shelleyxueqili8165 3 роки тому

      @@mikejonaseconometrics1886 Super clear, Professor!

  • @djangohinio
    @djangohinio 3 роки тому +1

    Thank you :)

  • @silarbiyoucef5888
    @silarbiyoucef5888 4 роки тому +1

    what about autocorelation in panel data ?

    • @mikejonaseconometrics1886
      @mikejonaseconometrics1886  4 роки тому

      Hi - Great Question! The 'xtregar' command will let you run FE or RE with an autocorrelated idiosyncratic disturbance term (www.stata.com/manuals13/xtxtregar.pdf). For panel autocorrelation due to the time-invariant error, FE, RE or cluster robust SE will handle that.

  • @yuxinzhao2471
    @yuxinzhao2471 4 роки тому

    An error comes up after the demand "tsline..." saying "time variable not set, use tsset varname...". What does that mean? The return code is 111.

    • @mikejonaseconometrics1886
      @mikejonaseconometrics1886  4 роки тому

      You first need to create a variable that tracks each observation over time, the easiest of which is 'trend' = 1,2,3, ...etc. try this: 'gen trend=_n'; tsset trend'. Then the commands will work.

    • @yuxinzhao2471
      @yuxinzhao2471 4 роки тому +1

      @@mikejonaseconometrics1886 Thank you! It worked!

  • @Dr_Shiny
    @Dr_Shiny 5 років тому

    Fantastic work. hats off.
    Sir, I have a panel data, T=41, N=16 (T>N).
    Dear Prof. When I run "estat dwatson" in Stata, It gives me this error "sample may not include multiple panels"
    Please help me to solve it.

    • @mikejonaseconometrics1886
      @mikejonaseconometrics1886  5 років тому +1

      The Durbin-Watson test is valid only for pure time series, and does not handle autocorrelation within panel data. There is a command "xtserial" that should work for you, although I do not have a tutorial for it.

    • @Dr_Shiny
      @Dr_Shiny 5 років тому

      Mike Jonas Econometrics thank you dear Prof

  • @rashikrayat9536
    @rashikrayat9536 2 роки тому

    Can you share the dataset?

  • @porschelouis6195
    @porschelouis6195 5 років тому

    excuse me ‘teacher, can i ask for UNRATE what’s it and what command for creating

    • @mikejonaseconometrics1886
      @mikejonaseconometrics1886  4 роки тому

      UNRATE is the code for US unemployment rate used by the Federal Reserve Economic Database. Use these commands to acquire the data series from within Stata: 'ssc install freduse'; 'freduse UNRATE'

  • @fones13
    @fones13 Рік тому

    i love you

  • @jovial129
    @jovial129 4 роки тому

    13:20