I split a variable which had date and time together to one with just the dates.
Now I am trying to convert it to a date numerical variable but its generating missing variables. I have used the same code for other dates and it worked just fine. Please let me know what is the error here.
The code that I used was:
gen long result_time = date(specimen_dt, "MDY" )
Thanks
Related Posts with Problem with date format
Making it so that stset works when birth and death happen in the same yearI'm working on a project in which I need to perform survival analysis on a sample of firms. When I s…
twoway connected or xtlineYear Country FDI year 2000 Cambodia 4.0501412 2000 2001 Cambodia 3.742602 2001 2002 Cambodia 3.38289…
Location Specific EffectsHello, I am estimating a regression model predicting the odds of openness to PREP among foreign born…
Why cannot I add note to this graph by using the following code?twoway (scatter astate year) (scatter awagepre year, yaxis(2)title(wage premium)) , ytitle(State emp…
Person-Specific IndicatorI have firm-year level data. I want to create person-specific indicators (not firm-specific). Howeve…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with date format
Post a Comment