 describe(deprecated)/countmissing - Maple Help

Home : Support : Online Help : describe(deprecated)/countmissing

stats[describe]

 countmissing
 Count of Missing Items Calling Sequence stats[describe, countmissing](data) describe[countmissing](data) Parameters

 data - statistical list Description

 • Important: The stats package has been deprecated. Use the superseding package Statistics instead.
 • The function countmissing of the subpackage stats[describe, ...] counts the number of missing observations in data. It uses the weight of the items, as specified by Weight.
 • The command with(stats[describe],countmissing) 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):$

There is one missing piece of data

 > $\mathrm{data1}≔\left[\mathrm{Weight}\left(3,10\right),\mathrm{missing},4,\mathrm{Weight}\left(11..12,3\right)\right]$
 ${\mathrm{data1}}{≔}\left[{\mathrm{Weight}}{}\left({3}{,}{10}\right){,}{\mathrm{missing}}{,}{4}{,}{\mathrm{Weight}}{}\left({11}{..}{12}{,}{3}\right)\right]$ (1)
 > $\mathrm{describe}\left[\mathrm{countmissing}\right]\left(\mathrm{data1}\right)$
 ${1}$ (2)

There are 3 observations in the range 1<=x<10, 4 in the range 10<=x<20 and 5 missing observations.

 > $\mathrm{data2}≔\left[\mathrm{Weight}\left(1..10,3\right),\mathrm{Weight}\left(10..20,4\right),\mathrm{Weight}\left(\mathrm{missing},5\right)\right]$
 ${\mathrm{data2}}{≔}\left[{\mathrm{Weight}}{}\left({1}{..}{10}{,}{3}\right){,}{\mathrm{Weight}}{}\left({10}{..}{20}{,}{4}\right){,}{\mathrm{Weight}}{}\left({\mathrm{missing}}{,}{5}\right)\right]$ (3)
 > $\mathrm{Nmiss}≔\mathrm{describe}\left[\mathrm{countmissing}\right]\left(\mathrm{data2}\right)$
 ${\mathrm{Nmiss}}{≔}{5}$ (4)

Ratio of missing data to total data is

 > $\frac{\mathrm{Nmiss}}{\mathrm{describe}\left[\mathrm{count}\right]\left(\mathrm{data2}\right)+\mathrm{Nmiss}}$
 $\frac{{5}}{{12}}$ (5)