describe
Compute summary statistics for numeric and categorical data, including mean, median, quartiles, skewness, and more, with optional grouping, confidence intervals, and survey weights.
Instructions
Descriptive statistics: n, missing, mean, SD, SE, confidence interval for the mean, median, min/max, quartiles, IQR, skewness and kurtosis - optionally split by one or more grouping variables. Categorical columns get a level count and modal category instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Dataset name in the session. | |
| digits | No | Decimal places. | |
| weight | No | Sampling weight column. Required for survey data - unweighted estimates describe the sample, not the population. | |
| group_by | No | Split the numeric summaries by these columns. | |
| variables | No | Columns to describe (default: all). | |
| conf_level | No | Confidence level for the mean's interval. | |
| include_categorical | No | Also summarise non-numeric columns. |