[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Two Easy Questions
:replace Dot=Quick if var==0 & var2==0 & ....& var12==0. Is there a
:way to make a shortage of that? I tried possible different varlist
You might consider -rowtotal- or -rowmiss- or related functions in
-egen-, so
egen t=rowtotal(var*)
replace dot=quick if t==0
Caleb
caleb@uoregon.edu
University of Oregon Sociology
*
* 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/