Descriptive Statistics, Data Summary and Related Commands
|
The Statistics package provides various commands for computing descriptive statistics and related quantities. These include location, dispersion and shape statistics, moments and cumulants. The package also provides several data summary and tabulation commands. In addition, most of these functions can handle weighted data and data with missing values. Here is the list of available commands
|
|
Floating Point Environment
|
|
|
All computations involving data are performed in floating-point; therefore, all data provided must have type realcons and all returned solutions are floating-point, even if the problem is specified with exact values.
|
|
|
Data with Missing Values
|
|
|
Missing values are represented by undefined or Float(undefined). Note that Float(undefined) propagates freely through most floating-point operations, which means that most statistics for a data set with missing values will yield undefined. The option ignore - which is available for most commands listed above - controls how missing data is handled. If ignore=true all missing items in a data set will be ignored. The default value of this option is false. For more details on a particular command, see the corresponding help page.
|
|
|
Adding Weights to Data
|
|
|
Weights can be added to data by supplying an optional argument weights=value, where value is a vector of numeric constants. The number of elements in the weights array must be equal to the number of elements in the original data set. By default all elements in a data set are assigned weight . For more details on a particular command, see the corresponding help page.
|
|
|
Examples
|
|
Generate random sample drawn from the non-central Beta distribution.
>
|
|
>
|
|
>
|
|
Compute the five point summary of the data sample.
>
|
|
| (1) |
Compute the mean, standard deviation, skewness, kurtosis, etc.
>
|
|
| (2) |
Estimate the mode.
>
|
|
| (3) |
Compute the second moment about .3.
>
|
|
| (4) |
Compute mean, trimmed mean and winsorized mean.
>
|
|
| (5) |
Compute frequency table for A.
>
|
|
| (6) |
|
|
Download Help Document
Was this information helpful?