Statalist


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

Re: st: capture minimum/maximum


From   Olalekan Uthman <[email protected]>
To   [email protected]
Subject   Re: st: capture minimum/maximum
Date   Tue, 27 May 2008 09:58:38 -0700 (PDT)

Try --

sysuse auto, clear
sum mpg
return list
di "`r(min)'"
di "`r(max)'"


--- Shehzad Ali <[email protected]> wrote:

> Hi,
> 
> This is perhapa a very basic question. Like r(mean)
> captures the mean value 
> after summarize, is there a function in stata that
> captures minimum or 
> maximum value of a variable?
> 
> Thanks,
> 
> Shehzad
> *
> *   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/
> 



      
*
*   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