transform(deprecated)/subtractfrom - Help

Online Help

All Products    Maple    MapleSim


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

stats[transform, subtractfrom]

subtracts from statistical data a number or the result of a descriptive statistics function

  

/  1993-03-16: Created. jmlang.

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

stats[transform, subtractfrom[quantity]](data)

transform[subtractfrom[quantity]](data)

Parameters

quantity

-

numerical value, or descriptive statistic function

data

-

statistical list

Description

• 

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

• 

The function subtractfrom of the subpackage stats[transform, ...] subtracts from  data the given quantity.

• 

Missing items remain unchanged.

• 

The requested subtraction is applied at each of the boundary points of classes.

• 

If quantity is not numeric, a call to stats[describe, quantity](data) is made to compute it.

• 

This function is useful for comparing the (absolute) dispersion of two lists of data. For example, removing the mean is a good first step in comparing the variation of mid-day temperatures at the North Pole and at some point on the Equator.

• 

The function transform[apply] is more general than the function transform[subtractfrom]. The function transform[divideby] is related to transform[subtractfrom], and is often used in conjunction with it. One may also want to use transform[standardscore] which removes the mean from the given data, then performs a division by the standard deviation.

Examples

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

withstats:

data5,6,7,8

data:=5,6,7,8

(1)

Subtract 4 from each datum.

transform[subtractfrom[4]]data

1,2,3,4

(2)

Subtract the mean from each datum.

transform[subtractfrom[mean]]data

32,12,12,32

(3)

describe[mean]data

132

(4)

See Also

Statistics

transform(deprecated)[apply]

transform(deprecated)[divideby]

transform(deprecated)[multiapply]

transform(deprecated)[standardscore]

 


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