Stata Ds

-ds- lists variables.


Usage

By default, -ds- simply returns the given variable list.

ds foo bar baz

To list all variables not included in a given variable list, try the not option:

ds foo bar baz, not

Specification

Variables can be described by a specification and -ds- will return the list of variables matching (or not matching) it.

ds, spec(type numeric)

ds, not(type string)

Valid specifications for the spec(spec) and not(spec) options are:


Stored Results

The list of selected variables is stored in r(varlist), without any truncation or indentation.


See also

Stata manual for -ds-


CategoryRicottone

Stata/Ds (last edited 2025-10-24 17:10:03 by DominicRicottone)