Statalist The Stata Listserver

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

Re: st: egen rowmin rowmax

From   Teresa Dale Nelson <>
Subject   Re: st: egen rowmin rowmax
Date   Sat, 4 Nov 2006 18:50:40 -0600 (CST)

Hi Michael,

I believe the condition that rowsum not equal zero would take care of 
that. Do you have a thought about this conditionality that I'm missing?

egen byte minmath = rowmin(mathseq*) if rowsum~=0


Michael Blasnik wrote:

>It looks like the rowmin should always be zero or missing -- at least 
>your description of the data is accurate.  How could the rowmin be 
>than zero if all of the rows contain at least a zero?
>Michael Blasnik
>----- Original Message ----- 
>From: "Teresa Dale Nelson" <>
>To: <>
>Sent: Saturday, November 04, 2006 6:30 PM
>Subject: Re: st: egen rowmin rowmax
><snip> Instead, the var for egen var=rowmin(varlist) is evaluated to 
zero or 
>missing.  In fact, some of
> the rows have all zeroes; the rest contain some zeroes and a few 
>between 1 and 13.
>*   For searches and help try:
*   For searches and help try:

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