## Statistics and boxplots in HC

From version 0.9, HC includes statistics functions, and a boxplotting function.The syntax is very simple. There are 4 functions:

stats(), statsf(), boxplot(), and boxplotf().

stats() takes as many arguments as you want, each representing one value of the series of which you want to get statistical data.

statsf() is the same as stats(), except you have to append each of the values' frequency after the value. For example, these two calls are equivalent:

stats(2,2,2,3,1,1) == statsf(2,3,3,1,1,2)

boxplot() is the same as stats(), except that it does not show statistical data; it draws a boxplot, as its name suggests. Duh.

Now you can probably guess what boxplotf() does; it's the same as statsf() but draws a boxplot.

### List of data shown by the stats() and statsf() functions

- n (number of elements)
- average
- first quartile
- median (second quartile)
- third quartile
- min
- max
- sum(x)
- sum(x^2)