I've done this in an I-descriptor.  The downside is that it's SD for a particular 
field only.  Also, to invoke it you must use CALC on the command line, to trigger the 
TOTAL() functions.  In the following example the data field is called F4.

  id: SD.F4
0001: I Standard deviation of F4; use CALC to evaluate
0002: IF T(1) > 1 THEN SQRT(T(F4*F4)-(T(1)*T(F4))/(T(1)-1)*T(1)) ELSE 0
0003:
0004: SD.F4
0005: 8R2
0006: S
0007:


----- Original Message -----
From: Ray Buchner <[EMAIL PROTECTED]>
Date: Mon, 9 Feb 2004 08:35:53 -0500 
To: 'U2 Users Discussion List' <[EMAIL PROTECTED]>
Subject: Standard Deviation

> Is there a Universe Basic command to calculate standard deviation?  If not,
> does anyone have a sub?
> -- 
> u2-users mailing list
> [EMAIL PROTECTED]
> http://www.oliver.com/mailman/listinfo/u2-users
> 

-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

Reply via email to