LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (April 1996, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 23 Apr 1996 22:15:23 +0100
Reply-To:   John Whittington <johnw@MAG-NET.CO.UK>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   John Whittington <johnw@MAG-NET.CO.UK>
Subject:   Re: Geometric Row Mean
Comments:   To: Jose Luis Alabart <joseluis@MIZAR.CSIC.ES>

On Tue, 23 Apr 1996, Jose Luis Alabart <joseluis@MIZAR.CSIC.ES> wrote:

> What about this code?

>gmean=exp(mean(log(x1),log(x2),log(x3),log(x4)));

Jose, that's even more typing than:

gmean=(x1*x2*x3*x4)**(1/4) ;

... particularly when ther are 40, rather than 4, variables - not to mention the (fairly) trivial) fact that all those functions will have a theroetical price in terms of speed, and even precise accuracy.

John

----------------------------------------------------------- Dr John Whittington, Voice: +44 1296 730225 Mediscience Services Fax: +44 1296 738893 Twyford Manor, Twyford, E-mail: johnw@mag-net.co.uk Buckingham MK18 4EL, UK CompuServe: 100517,3677 -----------------------------------------------------------


Back to: Top of message | Previous page | Main SAS-L page