transform(deprecated)/deletemissing - Help

stats[transform, deletemissing]

remove missing data

 Calling Sequence stats[transform, deletemissing](data) transform[deletemissing](data)

Parameters

 data - statistical list

Description

 • Important: The stats package has been deprecated. Use the superseding package Statistics instead.
 • The function deletemissing of the subpackage stats[transform, ...] removes the missing data from the given data.
 • The keyword missing refers to missing data. It is useful in cases where the data is not supplied for some reason (such as a particular student did not write a particular assignment), but the fact needs to be recorded. For analysis purposes, it is often appropriate to disregard missing data (for instance, to analyze the performance of the students who actually wrote an exam). Most, but not all, of the stats package will ignore missing data. Note that it is not always appropriate to remove missing data.

Examples

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

 > $\mathrm{with}\left(\mathrm{stats}\right):$
 > $\mathrm{data1}≔\left[1,\mathrm{missing},2,\mathrm{missing},x,\mathrm{missing}\right]$
 ${\mathrm{data1}}{:=}\left[{1}{,}{\mathrm{missing}}{,}{2}{,}{\mathrm{missing}}{,}{x}{,}{\mathrm{missing}}\right]$ (1)
 > $\mathrm{transform}[\mathrm{deletemissing}]\left(\mathrm{data1}\right)$
 $\left[{1}{,}{2}{,}{x}\right]$ (2)
 > $\mathrm{data2}≔\left[\mathrm{Weight}\left(3,10\right),\mathrm{missing},4,\mathrm{Weight}\left(11..12,3\right),15..17,\mathrm{Weight}\left(\mathrm{missing},3\right)\right]$
 ${\mathrm{data2}}{:=}\left[{\mathrm{Weight}}{}\left({3}{,}{10}\right){,}{\mathrm{missing}}{,}{4}{,}{\mathrm{Weight}}{}\left({11}{..}{12}{,}{3}\right){,}{15}{..}{17}{,}{\mathrm{Weight}}{}\left({\mathrm{missing}}{,}{3}\right)\right]$ (3)
 > $\mathrm{transform}[\mathrm{deletemissing}]\left(\mathrm{data2}\right)$
 $\left[{\mathrm{Weight}}{}\left({3}{,}{10}\right){,}{4}{,}{\mathrm{Weight}}{}\left({11}{..}{12}{,}{3}\right){,}{15}{..}{17}\right]$ (4)