Statalist


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

Re: st: capture minimum/maximum


From   Olalekan Uthman <uthlekan@yahoo.com>
To   statalist@hsphsun2.harvard.edu
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 <sia500@york.ac.uk> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index