stats[transform, scaleweight]
scale the frequencies by the given weight
Calling Sequence
Parameters
Description
Examples
stats[transform, scaleweight[factor]](data)
transform[scaleweight[factor]](data)
factor
-
value by which the weight of the data will be multiplied
data
statistical list
Important: The stats package has been deprecated. Use the superseding package Statistics instead.
The function scaleweight of the subpackage stats[transform, ...] multiplies the weights of the data by the given factor.
The weights, or frequencies, of items in a statistical data list are obtained using the function transform[frequency]. The total weight can be obtained using describe[count].
The total weight of a data list is often scaled to the values 1 and 100. The value 100 is used to get percentages. The value 1 is often used to compare with theoretical probability distributions. It is also used to obtain empirical distributions.
Cumulative percentages are obtained by first scaling the weight to 100, then using the function transform[cumulativefrequency].
with⁡stats:
Divide the weight by four.
transformscaleweight14⁡1,Weight⁡2,3,Weight⁡5,4
Weight⁡1,14,Weight⁡2,34,5
data≔3,5,6,Weight⁡7,2
To get percentages.
transformscaleweight100describecount⁡data⁡data
Weight⁡3,20,Weight⁡5,20,Weight⁡6,20,Weight⁡7,40
To normalize to a total weight of 1.
transformscaleweight1describecount⁡data⁡data
Weight⁡3,15,Weight⁡5,15,Weight⁡6,15,Weight⁡7,25
See Also
describe(deprecated)[count]
stats(deprecated)[data]
stats(deprecated)[transform]
transform(deprecated)[frequency]
Download Help Document