I am new to Stata and have been to the "essentials" training. I have a dataset with one var as dates in string format ( str8 type "12/15/23"). I am trying to create a new_date var with command -- generate new_date = date(date_old, "MDY"). When I enter this command I get "542 missing values generated" (there are 542 obs). Does the same thing if I use "daily" instead of "date". What am I doing wrong?
-
Login or Register
- Log in with
Comment