transform(deprecated)/scaleweight - Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : transform(deprecated)/scaleweight

stats[transform, scaleweight] - scale the frequencies by the given weight

Calling Sequence

stats[transform, scaleweight[factor]](data)

transform[scaleweight[factor]](data)

Parameters

factor

-

value by which the weight of the data will be multiplied

data

-

statistical list

Description

• 

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].

Examples

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

withstats:

Divide the weight by four.

transformscaleweight141,Weight2,3,Weight5,4

Weight1,14,Weight2,34,5

(1)

data:=3,5,6,Weight7,2

data:=3,5,6,Weight7,2

(2)

To get percentages.

transformscaleweight100describecountdatadata

Weight3,20,Weight5,20,Weight6,20,Weight7,40

(3)

To normalize to a total weight of 1.

transformscaleweight1describecountdatadata

Weight3,15,Weight5,15,Weight6,15,Weight7,25

(4)

See Also

describe(deprecated)[count], stats(deprecated)[data], stats(deprecated)[transform], transform(deprecated)[frequency]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam