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
Test for a trend of bacterial resistance against antibiotics over ten years periodDear statalist, Unfortunately, I posted this question one week on cross-validated and have yet to g…
Displaying symbols in value labelsHi, is there a way to display math symbols like "greater than or equal to" as value labels and have …
random number generationusing stata 13 I have set a seed value and using gen random=runiform() generated random numbers. Whe…
need equal spaces for unequal time points in x-axis of graphI'm trying to create a line graph showing trends in religiosity across five waves of survey data (2,…
Ignoring null values in sumI have a variable of "totalamountraised" that i would like to find the mean for. Some observations h…
Subscribe to:
Post Comments (Atom)
0 Response to converting string to date returns missing values
Post a Comment