Title

collapsel -- Make dataset of summary statistics

Syntax

collapsel [C-function spec] [if] [in], [by(varelist) ...] [noby]

Description

collapsel converts the dataset in memory into a dataset of means, sums, medians, etc.

Options

by(varelist) works as usual, partitioning the dataset before calculating the statistics.

It can be specified multiple times in a single command, which will result in multiple sets of observations, calculated on different partitions.

When by() is not specified, a single overall summary observation is created.

noby adds a single, overall summary observation when one or more by() options are also specified.