Hi!
i want to make a dummy variable that takes the value 1 if we observe a sale after a certain date for a spesific location
I have the date column on %tc format (e.g. 04jun2018 00:00:00) and i can't figure out how to do this correctly
i do this
generate treatment =0
replace treatment =1 if location=1 & salestime => tc(06.jun2018 00:00)
but then stata replace the dummy treatment to 1 if location is 1 and all the sales on this location, not only the ones after this spesific time.
Does anyone know?
Related Posts with date and time
outreg2Hello, I could not produce excel table from outreg. My command is simple as follows # In MS excel …
Is it usual for ivprobit per se to run quickly but margins after that is very slow?ivprobit finished in may a few minutes. But I am waiting for hours for margins to finish. Is this no…
Generating 500 AR(1) processesHello everyone, Just wanted to know how to generate 500 processes of the following model: Yt=alpha…
Advice regarding Stata NetCourseHello, Hope you all are well and safe. I am looking to expand my knowledge in visualization using …
Re: FitstatHello! I ran the logistic regression. The command fitstat produced some statistics on the model fit…
Subscribe to:
Post Comments (Atom)
0 Response to date and time
Post a Comment