stats(deprecated)/data - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : stats(deprecated)/data

Data Representation for the stats Package

 

Description

Examples

Description

• 

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.

Examples

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)

Weight3,2,1,6,90,missing:

Regrouped in classes (note that some information is necessarily lost)

Weight0..4,3,5..9,90..94,missing:

Symbolic values can also be used

sinx,missing,x3:

If data is numeric, then the mode can be computed.

statsdescribe,mode1,1,missing,3,Weight2,4

2

(1)

However, if data contains a non numerical entry

nn

nn

(2)

statsdescribe,moden,1,missing,3,Weight2,4

statsdescribe,moden,1,missing,3,Weight2,4

(3)

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,Weight2,4

(4)

See Also

describe(deprecated)[gaps]

Statistics

stats(deprecated)[importdata]