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

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

ความคิดเห็น • 29

  • @nip5554
    @nip5554 5 ปีที่แล้ว

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

  • @StephenGakuoMaina
    @StephenGakuoMaina ปีที่แล้ว

    so helpful Chuck

  • @Sirprises
    @Sirprises 4 ปีที่แล้ว

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

  • @gloryths
    @gloryths 2 ปีที่แล้ว

    Great video. Thanks.

  • @joyluzingu4324
    @joyluzingu4324 ปีที่แล้ว

    Amazing!

  • @julianparodi6411
    @julianparodi6411 5 ปีที่แล้ว +3

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

  • @gbolahantoluwalope1409
    @gbolahantoluwalope1409 2 ปีที่แล้ว

    This is help...Thank you

  • @abdullahalmamun-kk5bb
    @abdullahalmamun-kk5bb 3 ปีที่แล้ว

    this really helped me

  • @palidin400
    @palidin400 3 ปีที่แล้ว

    LIFE CHANGING

  • @Inagawakun
    @Inagawakun 5 ปีที่แล้ว

    This is really helpful. Thank you!

  • @sinamen516
    @sinamen516 6 ปีที่แล้ว +1

    soooooooo helpful!!!! thanks stata people

  • @aminaahmedalibelal5676
    @aminaahmedalibelal5676 ปีที่แล้ว

    bless you

  • @yararefaat7802
    @yararefaat7802 5 ปีที่แล้ว

    very helpful, Thank you

  • @baloo5949
    @baloo5949 4 ปีที่แล้ว +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 :(

  • @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?

  • @blackangelofthedead
    @blackangelofthedead 3 ปีที่แล้ว

    Thanks a lot

  • @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

  • @joyjunial1080
    @joyjunial1080 3 ปีที่แล้ว

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

  • @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?

  • @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.

  • @alishaaslam5715
    @alishaaslam5715 4 ปีที่แล้ว

    I am having a problem to import the data

  • @ashwinsivakumar13
    @ashwinsivakumar13 2 ปีที่แล้ว

    i love you