Please use informative titles for your posts.
Logic and examples for similar problems can be found in several places,
e.g.
FAQ . . . . . . . . . . . . . . . . . True and false in Stata
N. J. Cox
2/03 What is true and false in Stata?
http://www.stata.com/support/faqs/data/trueorfalse.html
FAQ . . . . . . . . . Logical expressions and missing values
W. Gould
2/03 Why is x > 1000 true when x contains missing value?
http://www.stata.com/support/faqs/data/values.html
Given a date variable -date-, and a key date, e.g. 28 March 2002, before
and after are just
. gen byte after28mar2002 = date > mdy(3, 28, 2002)
Nick
[email protected]
shannon steinbring
My problem is I am trying to create a variable (1/0)
based on if the values are greater than a date (1
greater than, 0 less than).
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/