Hi,
I am looking to create a variable that encompasses several dates. I am doing a project on product sales given a media spike. My data set is organized like this (just a small portion):
dates times price YeezyShoe
Tuesday, April 2, 2019 5:29 AM EST 149 0
Tuesday, April 2, 2019 5:29 AM EST 149 0
Monday, April 1, 2019 10:34 PM EST 121 0
I would like to create a variable for 9/9/18-9/15/18. How should I format my code?
Related Posts with Generating variable for a range of dates
How to calculate OLS R-square from FE model estimationHi all, The FE model estimates R-squares corresponding to: within, between and overall equations. H…
How to use categorical variable in dynamic panel regression?Hello, I am using a country variable, called "targetcountry" in my dynamic panel regression. This v…
How to flag observations that have a certain charateristic in one round but do not have that characteristic in any of the subsequent rounds?Hi everyone, Please consider the following data Code: * Example generated by -dataex-. To install: …
Esttab with longtable optionI am exporting a regression table to LaTeX using the community contributed esttab command with longt…
How to define date from 2000 in StataDear all, I need to calculate age using date of birth (dob) and survey submission date (end_date). …
Subscribe to:
Post Comments (Atom)
0 Response to Generating variable for a range of dates
Post a Comment