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
Calculate % coefficient effect after regressionHey everybody, I have a regression: Code: xtreg IMD ulc GDPpc capitalform mor sen pop pat fd van_i…
Metafunnel command - studies not displayed as expectedHi I'm using metafunnel in Stata 15.1 to plot funnel plots for a meta-analysis I'm undertaking but …
VECM: questions on Rank and First-difference vs. LevelDear all I am using VECM for the first time so please apologise me if my questions are so basic. I …
Exploring Stata mapping toolkitDear All, I want to visualise trade data showing the links between regions. Something like this (won…
Creating a year variable in a longitudinal datasetHi All My dataset is longitudinal in the long format, and each individual has 5 rows of data with e…
Subscribe to:
Post Comments (Atom)
0 Response to Changing Dates
Post a Comment