I thought this would be a relatively easy problem to fix but I seem to be running into trouble. Currently, I have a variable titled "OrderDate" with dates listed in decimal form (i.e. 1.2.2019, etc.) and I would like to convert these strings into something that I can organize them. (I assume this means converting them into a numeric but not entirely sure). I have tried to replace the decimal points with "/" in hopes that Stata would have an easier time converting them into recognizable date form but have not found a way for Stata to not just generate "." when I create a new variable.
Related Posts with Changing Dates
-nestreg- for panel regression?Dear Statelist I am working with a panel dataset consisting of more than 100 potential predictors. …
Help with multilevel cox regressionHello everyone, I'm trying to evaluate the association between outcome CVD and exposure saturated f…
Coefficient on inverse mills' ratio in Heckman MLHi, I am using firm-level survey data and I am interested in using the Heckman approach to test for…
Marginsplot and Predicted Probabilty on Y-axisHello, I am trying to fit a logistic model that contains an interaction between a continuous and ca…
Error message after xtwestDear Statalisters, I'm a longtime occasional lurker and a firsttime poster. I'm using 15.1. I have a…
Subscribe to:
Post Comments (Atom)
0 Response to Changing Dates
Post a Comment