Hello, I am working with a dataset from 2016 and would like to identify the day of the week from the date variable (date), which provides date in ymd format (i.e. 20160514). I attempted the code:
format date %td
gen DOW = dow(date)
but it only generated missing values for the DOW variable. I would greatly appreciate any insight to this code, thank you very much.
Related Posts with Assistance with dow command
Help with merging variablesHello, I'm trying to merge two datasets that have basically the same observations but with differen…
Get Post & Pre treatment yearsHello everyone, I am trying to make an event study graph. For this I need to pool my post and pre t…
mixed models, continuous variablesHi! I'm new on Stata and I apologize in advance for trivial questions I'm working on a mixed models…
Adjusting for seasonality using sax12Dear Stata users, I'm working on a panel dataset, which two credit variables (basically two distinc…
Asdoc implementation problem Hello, i am relativ inexperienced in Stata and I wanted to incorporate my regression output into Wo…
Subscribe to:
Post Comments (Atom)
0 Response to Assistance with dow command
Post a Comment