Data Representation for the stats Package
Description
Examples
Important: The stats package has been deprecated. Use the superseding package Statistics instead.
The fundamental data structure for the stats package is the statistical list. This is a list containing the following types of items.
item
a number, or symbolic expression representing
a single data value.
missing
a keyword representing missing data.
item..item
data grouped in a class. For example, 3..4,
designates a single data item whose value
is greater than or equal to 3 and
less than 4.
Weight(value, weight)
Weighted data.
The parameter value consists
of any of the preceding item types, and
the parameter weight is the weight associated
with this data item. For example, Weight(3..4, 10),
can be used to represent 10 entries
within the class 3..4.
Some functions, for example, stats[describe, mode], return unevaluated if their argument is a statistical list that contains non-numeric data.
Important: The stats package has been deprecated. Use the superseding package Statistics instead. Single entries, with missing observations.
1,3,6,missing,3,90:
This is equivalent to (if ordering is irrelevant)
Weight⁡3,2,1,6,90,missing:
Regrouped in classes (note that some information is necessarily lost)
Weight⁡0..4,3,5..9,90..94,missing:
Symbolic values can also be used
sin⁡x,missing,x3:
If data is numeric, then the mode can be computed.
statsdescribe,mode⁡1,1,missing,3,Weight⁡2,4
2
However, if data contains a non numerical entry
n≔n
statsdescribe,mode⁡n,1,missing,3,Weight⁡2,4
the mode returned unevaluated. More information can be obtained using:
`stats/lasterror`
statsdescribe,mode,requires data of type stats/numericdata, received,n,1,missing,3,Weight⁡2,4
See Also
describe(deprecated)[gaps]
Statistics
stats(deprecated)[importdata]
Download Help Document