stats[transform, classmark]
replace Classes by their Class Mark
Calling Sequence
Parameters
Description
Examples
stats[transform, classmark](data)
transform[classmark](data)
data
-
statistical list
Important: The stats package has been deprecated. Use the superseding package Statistics instead.
The function classmark of the subpackage stats[transform, ...] replaces classes by their class mark in the given data.
The class mark of a class is its midpoint. A class is represented by the range data structure. When the distinction is important (such as for the transform[tallyinto] function), the lower bound is inclusive and the upper bound is exclusive. Therefore, a..b represents data points x such that a<=x<b.
Data not given as a class (or range) are left unchanged.
with⁡stats:
data1≔1..3,4..5
transformclassmark⁡data1=1+32,4+52
2,92=2,92
It works for weighted data also.
data2≔Weight⁡3..9,10
transformclassmark⁡data2=Weight⁡3+92,10
Weight⁡6,10=Weight⁡6,10
data3≔Weight⁡3,10,missing,4,Weight⁡11..12,3,15..17
transformclassmark⁡data3
Weight⁡3,10,missing,4,Weight⁡232,3,16
See Also
Statistics
stats(deprecated)[data]
stats(deprecated)[transform]
transform(deprecated)[tallyinto]
Download Help Document