[P] _ms_at_parse -- Parse at() specifications for postestimation commands
_ms_at_parse [at_list] [, asobserved]
( at_stat )
mean or omean
median or omedian
min or omin
max or omax
p1 or op1
p99 or op99
indepvar = value
indepvar = ( numlist )
indepvar = generate(exp)
where value is a numeric (nonmissing) value, exp is a numeric expression
allowed by the generate command, and indepvar is any valid single
variable specification that identifies an independent variable
participating in the column stripe for e(b), for example, standard
variables with or without time-series operators, and factor-level
variables (but not interactions of variables).
_continuous is a shortcut notation that means all the continuous
_factor is a shortcut notation that means all the factor-variable
_all and * are synonyms for _continuous _factor.
Although an indepvar can be specified multiple times, only the rightmost
at_stat has any affect, and only if the indepvar is not associated with
value or numlist.
_ms_at_parse parses the contents of the standard at() option for some of
Stata's postestimation commands.
asobserved indicates that any unspecified independent variable is to be
left as observed. The default is to associate (mean) with each of
the unspecified independent variables.
_ms_at_parse stores the following in r():
r(statlist) list of expressions or keywords associated with each
of the p independent variables participating in
the column names of e(b); a keyword is either
asobserved or one of the at_stats
r(atvars) list of variable names explicitly specified in
at_list; this list preserved the order in which
the variables were specified
r(at) a k x p matrix with k patterns of values associated
with the full set of p independent variables
participating in the column names of e(b)