/lcollapse

Stata collapse but it keeps the labels

Primary LanguageStata

lcollapse

Stata collapse but it keeps the labels.

Setup

net install lcollapse, from("https://raw.githubusercontent.com/DiegoCiccia/lcollapse/main") replace

Syntax

lcollapse anything [, options]

The syntax of collapse is supported in full.

Example

qui sysuse auto, clear
lcollapse (max) price rep78 (min) weight , by(foreign)