Overview of the stats[transform] Subpackage

Calling Sequence


stats[transform]command](arguments)
command(arguments)


Description


•

The stats[transform] subpackage provides various tools for transforming lists of statistical data.

•

Each command in the stats[transform] package can be accessed by using either the long form or the short form of the command name in the command calling sequence.



List of stats[transform] Subpackage Commands


•

The following is a list of available commands.

apply

extends map() to statistical data.

classmark

replace data classes by their class mark (midpoint).

cumulativefrequency

count up the weights of the data items.

deletemissing

delete missing data from the data list.

divideby

divide the data by a number or a


descriptive statistics function.

frequency

give the weights of each data item.

moving

compute moving averages and other moving quantities.

multiapply

apply a formula across multiple data lists.

scaleweight

multiply the weights of the data by a given value.

split

split the data list into multiple lists


of the same weight.

standardscore

replace each data item by its standard score


(zvalue).

statsort

sort statistical data.

statvalue

give the value of each data item. That is, set


their weight to 1.

subtractfrom

subtract from the data a number


or a descriptive statistics function.

tally

tally each data item.

tallyinto

tally each item into specified classes.



•

Some commands either require or use parameters in addition to the data given as arguments. These parameters appear as an index to the command name. See transform[standardscore] for an example.

•

If a particular call cannot be evaluated, for example trying to find the mode of a statistical list that contains a nonnumeric entry, then the call is returned unevaluated. Information is provided in the variable `stats/lasterror` as to the reason why a call was not evaluated. Also, this information is automatically given if infolevel[stats] has a value greater than or equal to one, prior to the unsuccessful call.



Examples


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


>


 (1) 
>


 (2) 
>


 (3) 
>


 (4) 
>


 (5) 
Remembering that the left boundary of a class is inclusive, and the right boundary is exclusive (so the 10 above belongs to 10..15 and not 5..10, we have:
>


 (6) 


Download Help Document
Was this information helpful?