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

  Рет қаралды 86,109

StataCorp LLC

StataCorp LLC

Күн бұрын

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!
@StephenGakuoMaina
@StephenGakuoMaina Жыл бұрын
so helpful Chuck
@gloryths
@gloryths 2 жыл бұрын
Great video. Thanks.
@julianparodi6411
@julianparodi6411 5 жыл бұрын
and for Year? what is it instead of MDY? tried Y, YY, CCYY everything, nothing works
@abdullahalmamun-kk5bb
@abdullahalmamun-kk5bb 3 жыл бұрын
this really helped me
@gbolahantoluwalope1409
@gbolahantoluwalope1409 2 жыл бұрын
This is help...Thank you
@Inagawakun
@Inagawakun 5 жыл бұрын
This is really helpful. Thank you!
@joyluzingu4324
@joyluzingu4324 Жыл бұрын
Amazing!
@palidin400
@palidin400 3 жыл бұрын
LIFE CHANGING
@sinamen516
@sinamen516 6 жыл бұрын
soooooooo helpful!!!! thanks stata people
@blackangelofthedead
@blackangelofthedead 3 жыл бұрын
Thanks a lot
@yararefaat7802
@yararefaat7802 5 жыл бұрын
very helpful, Thank you
@aminaahmedalibelal5676
@aminaahmedalibelal5676 Жыл бұрын
bless you
@baloo5949
@baloo5949 3 жыл бұрын
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 :(
@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
@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?
@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?
@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.
@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
Working With Dates in Stata
22:29
The Data Hall
Рет қаралды 2,9 М.
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 35 МЛН
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 69 МЛН
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 15 МЛН
Working With String Variables in Stata
20:37
The Data Hall
Рет қаралды 1,2 М.
Categorical Variables in Stata
7:56
SebastianWaiEcon
Рет қаралды 137 М.
Aggregating Data by Subgroups in STATA
7:16
David Braudt
Рет қаралды 66 М.
Cross-tabulations in Stata®
8:56
StataCorp LLC
Рет қаралды 254 М.
Formatting dates in STATA
11:41
Makerere Epidemiology and Statistical center
Рет қаралды 1,8 М.
Computing time difference with #Stata
6:55
All I know about Stata - Data Management
Рет қаралды 367
Data management: How to merge files into a single dataset
5:24
StataCorp LLC
Рет қаралды 199 М.
🚨 YOU'RE VISUALIZING YOUR DATA WRONG. And Here's Why...
17:11
Adam Finer - Learn BI Online
Рет қаралды 152 М.
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 35 МЛН