Statalist The Stata Listserver

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

Re: st: Two Easy Questions

From   Caleb Southworth <>
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

University of Oregon Sociology
*   For searches and help try:

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