Back to functions

zscore


Z-score

Calculates the z-score for a value.

Usage: nerdamer("zscore(x, mean, stdev)")


Parameters

expression x The value for which to find the z-score.
expression mean The mean of the set of numbers.
expression stdev The standard deviation of the set of numbers.

Returns

Expression

EXAMPLES:
nerdamer.setVar('x', '[3,1,2,6]');
var x = nerdamer('zscore(2, mean(x), stdev(x))');
console.log(x.toString());
x = x.evaluate()
console.log(x.text());
OUTPUT:
Back to functions