Title

fromvars - select variables whose data satisfies some condition

Syntax

fromvars varelist [if] [in] , thoseforwhich(Cfexp)

Description

fromvars returns a list of variables for which some condition holds. For example,

fromvars *, th( Var()==0 )

will return those variables whose variance over the dataset (or subset selected with [if] [in]) is zero.
You must specify a condition with a constant value for all relevant observations. IE, Mean()>3 is ok, Mean>x is not.

The variable list is also returned in r(varlist).