Hello,
I have a string variable (str10) which I want to convert into date so i can add and subtract days.
Array
This string variable is formatted in the ddmmyyyy format but some of the values are recoded as "NA" or "na" if the date is missing. When I use
gen new_date_variable = date(date_variable, dmy)
Stata just returns missing values for all.
Could anyone suggest what is the problem and how should i rectify ? Many Thanks
Related Posts with converting string to date returns missing values
Multiple cox regression models codeDear all I have the following data set titled "EyeSurgery" The data contains 3000 IDs of patients.…
Significant AR(2) and low Hansen TestHi all, I am currently working on a dissertation to assess the state level of tax impact on marijua…
Gravity model ppmlhdfe last estimates not foundHi all, I have been dealing with this set of data for a long time, but still can not get to final r…
Bar graph showing percentages in each categoryI have: Y X 1 1 1 0 1 1 2 1 2 0 I want to have a bar graphs that displays two bars for each value o…
Conversion of NumbersHi everyone, I have two data sets one having numbers in Millions and the other has numbers in the t…
Subscribe to:
Post Comments (Atom)
0 Response to converting string to date returns missing values
Post a Comment