Stata 15 help for _ms_parse_parts

Title

[P] _ms_parse_parts -- Parse a single matrix stripe element

Syntax

_ms_parse_parts spec

where spec is a valid matrix stripe element, excluding the equation part.

Description

_ms_parse_parts parses spec and returns the token parts in r().

Stored results

_ms_parse_parts stores the following in r():

Scalars r(omit) indicates spec is the base level of a factor variable or spec is tagged as omitted r(base) indicates spec is at base level if spec is type factor r(level) factor level if spec is type factor r(k_names) number of names if spec is type interaction or product r(base#) indicates that the #th factor variable is at the base level if spec is type interaction or product r(level#) level of the #th factor variable if spec is type interaction or product

Macros r(type) matrix stripe element type: variable, error, factor, interaction, or product r(op) full operator portion if spec is type variable, error, or factor r(ts_op) time-series operator portion if spec is type variable, error, or factor r(name) name portion if spec is type variable, error, or factor r(op#) full operator portion of the #th variable if spec is type interaction or product r(ts_op#) time-series operator portion of the #th variable if spec is type interaction or product r(name#) name of the #th variable if spec is type interaction or product


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index