Included Stats Functions

Mwnci statistical functions that are not part of the builtin functions can be loaded with

include("stats")

Functions

Command Definition
average() Returns the average (mean) of all the values in an array.
covariance() Returns the covariance of two data sets (arrays).
geomean() Returns the average value or mean which signifies the central tendency of the set of numbers by finding the product of their values.
harmonicmean() Returns the average rate of change for a given set of numbers.
mean() Returns mean (average) of all the values in an array.
median() Returns the median (middle value) of the given numeric array.
mode() Returns the mode (central tendency) of the given numeric or nominal array.
stdev() Returns the standard deviation of a given data set.
variance() Returns how far a set of numbers are spread out from their average value.