describe(deprecated)/count - Maple Help

stats[describe]

 count
 Count of non missing items

 Calling Sequence stats[describe, count](data) describe[count](data)

Parameters

 data - Statistical list

Description

 • Important: The stats package has been deprecated. Use the superseding package Statistics instead.
 • The function count of the subpackage stats[describe, ...] counts the number of non missing observations in data. It uses the weight of the items, as specified by Weight.
 • Since the function count gives the total weight of the non-missing data, it is useful in conjunction with stats[transform,scaleweight], stats[transform,tally], and stats[transform,tallyinto], in order to find relative frequencies.
 • The command with(stats[describe],count) allows the use of the abbreviated form of this command.

Examples

Important: The stats package has been deprecated. Use the superseding package Statistics instead.

 > $\mathrm{with}\left(\mathrm{stats}\right):$

Data consists of the number 4 repeated 5 times, together with the numbers 2 and 3. Seven items in all.

 > $\mathrm{data1}≔\left[2,3,\mathrm{Weight}\left(4,5\right)\right]$
 ${\mathrm{data1}}{≔}\left[{2}{,}{3}{,}{\mathrm{Weight}}{}\left({4}{,}{5}\right)\right]$ (1)
 > $\mathrm{describe}\left[\mathrm{count}\right]\left(\mathrm{data1}\right)$
 ${7}$ (2)

Here the data consists of 1 missing item, 10 copies of the number 3, 3 items in the range 11<=x<12 and 1 copy of the number 4. Fourteen non-missing items.

 > $\mathrm{data2}≔\left[\mathrm{Weight}\left(3,10\right),\mathrm{missing},4,\mathrm{Weight}\left(11..12,3\right)\right]$
 ${\mathrm{data2}}{≔}\left[{\mathrm{Weight}}{}\left({3}{,}{10}\right){,}{\mathrm{missing}}{,}{4}{,}{\mathrm{Weight}}{}\left({11}{..}{12}{,}{3}\right)\right]$ (3)
 > $\mathrm{describe}\left[\mathrm{count}\right]\left(\mathrm{data2}\right)$
 ${14}$ (4)