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
Inquire about .regress y if x == 0I saw a code which is kind of like Code: regress y if x == 0 Both x and y are dummy variables. What…
Merging when one data set has 2 entries per householdHi Statalist! I have a question about merging. I have household level data of farmers and their ag…
Leading zeros for displaying scalarsI would like to take the results of scalars and generate a new macro variable. An example is shown b…
FE- 0/1 ProblemHi there! I have a panel dataset. I’m doing a Fixed Effects Regression. I have this central variabl…
Use another dataset to rename variable based on conditionHello, I'm new to Stata (and new to this forum ) and I'm trying to do something probably quite basi…
Subscribe to:
Post Comments (Atom)
0 Response to Assistance with dow command
Post a Comment