Dear Stata community,
I have a variable stored as dates in the Stata format i.e 01jul1993 (I converted them from string into the correct format). However
I know want to create a new variable which organises the observations according to whether the date was pre or post 31dec1996. what would be the best command to use please? I have tried reading the manual in reference to dates/ times but I could find anything that helps with generating new variable according to the date.
Many thanks for your help,
Roshani
Related Posts with generating new variable based on date variable
Multiple imputationCan we divide into separate steps the variables with missing data according to their type while mult…
Multivariable logistic regression missing out categoriesHi all, I'm trying to a multivariable logistic regression analysis of some data, with one of the var…
Query in Breusch-Pagan test for panel dataHello everyone, I am new to this forum. I would like to test my panel data model for Heterskedastici…
table1_mc can now also report the value of the test statisticThe latest version of table1_mc is now available to download on SSC. Code: . search table1_mc The m…
Create a variable to indicate overlappingHello all, I have the dataset as follows. In each observation I have carrier, time(yq), and market(…
Subscribe to:
Post Comments (Atom)
0 Response to generating new variable based on date variable
Post a Comment