Please advise how I can keep a subset of data using "date variable": i.e. keeping data from 27 Feb 2006 and 16 July 2006 (inclusive)
Tried this and obviously didn't work:
keep if allegdate >="27feb2006" & <="16jul2006"
Related Posts with Keeping subset of data using date variable
Creating an Abortion scaleHello Everyone, I am trying to create a 7-point scale for attitudes towards abortion for every dec…
how to calculate output of r(alpha) (short example included)?My deepest apologies if this is difficult to work with. I'm not a stata user, i'm just trying to dec…
assign variable label to variable nameHi I have a dataset that has some variables, say, X1-X10. The corresponding variable labels are 2018…
What should I do to achieve the following result.? Code: * Example generated by -dataex-. For more info, type help dataex clear input str3 code str29 …
Create new variables using two categorical variablesI have three variables gender sector and wf. Gender and sector are categorical variables, where gend…
Subscribe to:
Post Comments (Atom)
0 Response to Keeping subset of data using date variable
Post a Comment