Multi-group range statistics.

Trange(value, group)

Arguments

value

Value variable of length nobs.

group

Grouping variable of length nobs. Must contain two or more distinct values.

Value

A vector of length two, containing the range (max minus min) of within-group means and within-group medians, respectively.