STDV or STDEV macro
The STDV
or STDEV
macro
is available in Unica Campaign and Unica Interact.
Syntax
STDV(data [, keyword]) STDEV(data
[, keyword])
Parameters
data
The
numerical values to compute the standard deviation of. This can be
a constant value, a column, a cell range, or an expression evaluating
to any of the above. For the format definition of data
,
see the "Macro Function Parameters" section in the chapter in this
guide for your
product.
keyword
This optional keyword determines how the computation is performed over the input data range. Select one of the following:
ALL
- Performs
the computation on all cells in data
(default)
COL
-
Performs the computation separately for each column of data
ROW
- Performs the computation separately for each row of data
For more details on using keywords in Unica Campaign, see Format Specifications.
{ALL | COL | ROW}
.
These keywords do not apply in
Unica Campaign
because the input data is always a single column
or field. The macro will always behave as if the COL
keyword were specified. Therefore, you do not need to specify these
keywords when using
Unica Campaign .Description
STDV
calculates
the standard deviation of all the cells in the specified data range.
The standard deviation of a distribution is the square root of the
variance. The standard deviation is calculated as follows:where the x's are the samples, n is the number of samples, and mean is the average of the distribution.
STDV
returns an error.Examples
TEMP = STDV(V1) Creates
a new column named |
TEMP = STDV(V1:V3) Creates
a new column named |
TEMP = STDV(V1[1:5]:V4)
Creates a new column named |
TEMP = STDV(V1:V3, COL)
Creates three new columns named |
TEMP = STDV(V1[10:50]:V3,COL)
Creates three new columns named |
TEMP = STDV(V1:V3, ROW)
Creates a new columns named |
TEMP = STDV(V1[1:5]:V3,ROW)
Creates a new column named |
Related Functions
Function | Description |
---|---|
VAR |
Computes the variance of a range of cells |