CV Function

Returns the coefficient of variation.

Category: Descriptive Statistics

Syntax

Required Argument

argument

specifies a numeric constant, variable, or expression. At least two arguments are required. The argument list can consist of a variable list, which is preceded by OF.

Example

The following SAS statements produce these results.
SAS Statement
Result
x1=cv(5,9,3,6);
43.47826087
x2=cv(5,8,9,6,.);
26.082026548
x3=cv(8,9,6,.);
19.924242152
x4=cv(of x1-x3);
40.953539216