Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Generate Variable


From   <[email protected]>
To   [email protected]
Subject   st: Generate Variable
Date   Wed, 11 Mar 2009 17:08:39 -0500 (CDT)

Hi Statalisters, 

I have a quick question. I am trying to create a dummy 
variable that is equal to 1 when organizations have more 
properties in wave 6 compared to wave 4. My data is in long 
form.

Logically, it would be something like this, but this does not 
work, I am missing some steps.

gen HiPropertyw6= 1 if (numProp==wavenum==4 <  
numInsArrng==wavenum==6).


Erick
Erick Guerrero, M.A.
Ph.D. Candidate
NIDA Predoctoral Fellow
School of Social Service Administration
The University of Chicago
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index