Data management: How to create a date variable from a string

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • This video demonstrates how to create a date variable from a string in Stata using the date() function.
    www.stata.com
    Copyright 2011-2019 StataCorp LLC. All rights reserved.

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

  • @nip5554
    @nip5554 5 лет назад

    OH MY GOD!!!!! YOU ARE THE REAL MVP!!! THANK YOU! THANK YOU! THANK YOU!

  • @Sirprises
    @Sirprises 4 года назад

    Chuck you're awesome. Thanks for saving my ass on my Master Thesis!

  • @julianparodi6411
    @julianparodi6411 5 лет назад +3

    and for Year? what is it instead of MDY? tried Y, YY, CCYY everything, nothing works

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

    so helpful Chuck

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

    Great video. Thanks.

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

    This is help...Thank you

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

    LIFE CHANGING

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

    Amazing!

  • @abdullahalmamun-kk5bb
    @abdullahalmamun-kk5bb 3 года назад

    this really helped me

  • @sinamen516
    @sinamen516 6 лет назад +1

    soooooooo helpful!!!! thanks stata people

  • @Inagawakun
    @Inagawakun 5 лет назад

    This is really helpful. Thank you!

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

    Thanks a lot

  • @yararefaat7802
    @yararefaat7802 5 лет назад

    very helpful, Thank you

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

    bless you

  • @jl031094
    @jl031094 5 лет назад

    After you have done this and you want to group this variables by age is this possible and how? Because recode command does not work

  • @soufieneassidi3238
    @soufieneassidi3238 4 года назад

    I have data from data stream and I need to change a panel data. what are the steps

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

    Hey! Im desperately in need of your help!!! My data set is string daily (without the weekends)
    I've tried formatting the data using the command: generate time=date(date, "MDY") but it keeps responding with "missing values generated".
    Please help me i've tried everything and nothing works. My data is 01/01/1991 (MDY) and its called date but i dont know why it isnt working

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

      this is the same problem I have...it just generates all missing values

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

      same problem here, have you managed to fix it?

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

      @@TheRamsey582 hi! I wasn’t able to fix it myself so I reached out to STATA professionals to help me out. Sorry for not being any help :(

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

    What could be the issue, when Stata makes out of "200001" (=01.2000) to "317707" (=07.3177) and not to 01.2000?

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

      Could you please email us at tech-support@stata.com with the commands you are running and the change you would like to make. We are unclear about the change you want to make based on your question.

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

    Please help ... Describe shows my date format is "int" --- does it matter.

  • @nithin.m2675
    @nithin.m2675 5 лет назад

    hi.. i have a yearly variable stored in the format 1996-97, 1997-98 etc. how can i convert this to stata recognisable format? like for 1996-97 (thats the financial year in India) how can i get 1996 and so on?

  • @alishaaslam5715
    @alishaaslam5715 4 года назад

    I am having a problem to import the data

  • @prakashrajpaudel2370
    @prakashrajpaudel2370 6 лет назад

    I have a little question regarding the date conversion, I have a data and date is stored as a string and the format is "1976-01-06", and I have tried to convert it to the date but everytime it generate missing value, could you have any suggestion

    • @12artyom
      @12artyom 6 лет назад

      The same problem, can anyone help?

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

    i love you