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
Significant variable in panel regression but not in regression year by yearDear Stata users, I need your point of view about this subject. I run a xtlogit regression with the …
Repeated time values - Panel DataHi, I have election data for a country. I am trying to set a panel but as each place has multiple c…
Interpreting a 3-category dummy variables and interaction termsDear All, I run the following model: Suppose I have a dummy variable: small, medium, large; and the…
Create a new variable with random probability and with probabilityI have to create 2 variables the first one is a random variable (e1) between 1-17 the second is a v…
help with krlsHello, I'm using the krls command to predict a binary outcome (whether the patient starts dialysis …
Subscribe to:
Post Comments (Atom)
0 Response to converting string to date returns missing values
Post a Comment