Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Two Easy Questions


From   Caleb Southworth <[email protected]>
To   [email protected]
Subject   Re: st: Two Easy Questions
Date   Tue, 31 Oct 2006 14:08:43 -0800 (PST)

: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
[email protected]
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/



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