Generate time series variable Stata

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 59

  • @AliGYucel
    @AliGYucel Год назад +3

    nice video. a clarification on the "weird numbers" that you see in quarterly, monthly, or daily data: Stata stores dates as the number of days elapsed since Jan 1, 1960. So, for quarterly data, 1960q1 is always seen as 0, or for monthly data 1960m1 is always seen as 0. Likewise, for daily data, Dec 31, 1960, would be stored as 365 (365 days since Jan 1, 1960).

  • @JDEconomics
    @JDEconomics  3 года назад +4

    Thanks for watching!
    📈 Download the DO File for free (no ads) and replicate the content of the video:
    jdeconomicstore.com/collection/stata
    ✅ Check all my video tutorials available and more on my website:
    www.jdeconomics.com/home
    Regards!
    JD

  • @kanchandatta4668
    @kanchandatta4668 9 месяцев назад +2

    Very useful

    • @JDEconomics
      @JDEconomics  9 месяцев назад

      Thanks a lot! Please feel free to subscribe to my channel and share it with your friends/social network. I wish you good luck on you studies/work!

    • @kanchandatta4668
      @kanchandatta4668 9 месяцев назад

      @@JDEconomics already subscribed.

  • @yifangcheong9539
    @yifangcheong9539 6 месяцев назад +1

    Thank you so much! You save my day

  • @USAmedu-wz5op
    @USAmedu-wz5op Год назад +1

    This is so good, thank you! You just saved me hours!

    • @JDEconomics
      @JDEconomics  Год назад +1

      My pleasure! You can download for free the DO file at jdeconomicstore.com/b/generatetimevariablestata
      Cheers! JD

    • @USAmedu-wz5op
      @USAmedu-wz5op Год назад

      @@JDEconomics Thank you, will do :-)

  • @christiankabano8502
    @christiankabano8502 Год назад +1

    Thank you so much, was struggling to get this

  • @tianqisu7605
    @tianqisu7605 2 года назад +1

    Great video! thank you! better than my pros!

  • @shynarajumadilova1850
    @shynarajumadilova1850 7 месяцев назад +1

    thank you! so helpful

  • @ghizlanesaidi6942
    @ghizlanesaidi6942 Год назад +1

    Thanks a lot, it was very helpful for me 🙏🏻🙏🏻🙏🏻🙏🏻

    • @JDEconomics
      @JDEconomics  Год назад

      Great! You can download for free the Do file in my website! Www.jdeconomicstore.com
      Good luck!

  • @nguyenphuongchi7081
    @nguyenphuongchi7081 9 месяцев назад +1

    very helpful for me!!!!!

    • @JDEconomics
      @JDEconomics  9 месяцев назад

      Thanks a lot! Please feel free to subscribe to my channel and share it with your friends/social network. I wish you good luck in your studies/work!

  • @nadeeshaishani3671
    @nadeeshaishani3671 2 года назад +1

    This Video was so useful. Thank You

    • @JDEconomics
      @JDEconomics  2 года назад

      Thanks nedeesha for your comment! Best regards, JD

  • @LongLE-te8nq
    @LongLE-te8nq 2 года назад +1

    Thanks for your great lesson!

    • @JDEconomics
      @JDEconomics  2 года назад

      No problem! Please check my website! Www.jdeconomics.com

  • @satyendrapratap9481
    @satyendrapratap9481 3 года назад +2

    Thank you so much sir, its very helpful for me. please make video on Qualitative Response Model. it would be very helpful for me

    • @JDEconomics
      @JDEconomics  3 года назад

      Thanks. I will add it to the list. Regards, JD

  • @daiane_2310
    @daiane_2310 3 года назад +3

    Very good! Waiting for video about garch-Midas in eviews or R 😀

    • @JDEconomics
      @JDEconomics  3 года назад +1

      Hi Daiane! Thanks for your message and suggestion! I will add it to the list of topics for future videos! Have a nice day! JD.

    • @JDEconomics
      @JDEconomics  3 года назад +1

      Hello Daiane, i have submitted a video about ARCH models. Here is the link: ruclips.net/video/_-HFP5KXwIk/видео.html . I will submit later one on GARCH models too.

    • @daiane_2310
      @daiane_2310 3 года назад

      @@JDEconomics thank you so much

  • @licornemiss4609
    @licornemiss4609 2 года назад +1

    This was really useful, thank you so much!!

    • @JDEconomics
      @JDEconomics  2 года назад

      Great to hear! Good luck! jD

    • @licornemiss4609
      @licornemiss4609 2 года назад

      @@JDEconomics Could you do someday a video of SARIMA models?

    • @JDEconomics
      @JDEconomics  2 года назад +1

      @@licornemiss4609 sure!

  • @muhammadirfanzidni6786
    @muhammadirfanzidni6786 Год назад +1

    Really really helpful

    • @JDEconomics
      @JDEconomics  Год назад

      Thanks! Great to hear! You can download for free the Do file in my website. Cheers, JD

  • @khadimkebe8907
    @khadimkebe8907 Год назад +1

    Thank you!

  •  2 года назад +1

    Thanks so much!!

    • @JDEconomics
      @JDEconomics  2 года назад +1

      My pleasure! Good luck! JD

    •  2 года назад

      @@JDEconomics 😊🤓

  • @yanwang2949
    @yanwang2949 3 года назад

    Thank you very much for sharing this valuable content. I really like your channel! I am wondering whether there is a convenient way in Stata to address irregular time series observations without assigning false time stamps? Say using trading days for the entire analysis but in plotting the time series the time stamps are corrected specified? I am also wondering what is the best practice for using Stata when importing time series data? Should one keep the time stamps in the raw data? How to take care of the transformation of these time stamps into Stata readable format? Many thanks in advance!

    • @JDEconomics
      @JDEconomics  3 года назад

      Hello Yan, Thanks for your message and positive feedback. I am not sure about the first part of your question. Regarding the best way to handle time, for time series I normally import the dataset, generate a time variable and then drop the time variable from the original dataset.
      I hope that helps, and my apologies I'm not sure about the first part.
      Kind Regards,
      JD.

  • @iliasdouiri4262
    @iliasdouiri4262 Месяц назад

    How do you create time series variables with minute interval. I tried using tc() but does not work ???

  • @charalamposgiannopoulos6779
    @charalamposgiannopoulos6779 2 года назад

    Thanks for the video. What about when we want to create quarters for multiple cross sectional data? So a quarter that will stop and then reccur again.

    • @JDEconomics
      @JDEconomics  2 года назад

      I’m not sure about your request. Sorry

  • @mangocandy9945
    @mangocandy9945 Год назад

    hi, I have a question. I have a daily dataset and I want to generate it to become quarters data such as 1/1/2021....3/31/2021 will become 2021q1...2021q1. Do you know how I can do that? Thank you!

  • @brigittegerstl5122
    @brigittegerstl5122 Год назад

    can you advise how you tsset for Poisson regression

  • @rtnez9469
    @rtnez9469 Год назад

    Helo! How if i just want to use weekdays for daily data?

  • @yogiadiryn
    @yogiadiryn Месяц назад

    My data start at 2022, but when i comand for daily its start form 1960, is there any solution?

    • @JDEconomics
      @JDEconomics  Месяц назад

      Hey! Did you download the free do file?

  • @wagnersantos7748
    @wagnersantos7748 2 года назад

    Hi. When I identify the time variable this message appear "repeated time values in sample"

    • @JDEconomics
      @JDEconomics  2 года назад

      Hi, I am no sure why is giving you that error message. If you downloaded the DO file In the description, make sure you only run one code and not all of it at the same time. Regards,

  • @Z3nk0v
    @Z3nk0v 3 года назад +1

    Is it possible to generate weekly data?

    • @JDEconomics
      @JDEconomics  2 года назад

      Yes, but unfortunately I am not in my research computer and don't remember it. I know the format is %tw. Try typing: help dates and times .
      Type that in stata and it will provide you the instructions for sure.
      Good luck! JD

    • @Z3nk0v
      @Z3nk0v 2 года назад +1

      @@JDEconomics thanks!

  • @iliasdouiri4262
    @iliasdouiri4262 Месяц назад

    does not work for me. when I type the same gen command the variables are created with no values inside

    • @iliasdouiri4262
      @iliasdouiri4262 Месяц назад +1

      I had observation set at 0 sorry

    • @JDEconomics
      @JDEconomics  Месяц назад

      Great you figured it out! Good job