Stata Display

-display- prints text to the output.


Usage

display "Hello, world"

// arithmetic
display _N+1

// scalars
display "There are " _N " cases"

// stored results
display "Something about `r(N)' of them"

// macros
display "Something about ${globals} and `locals'"

Directives

-display- interprets a set of directives.

Styles

-display- operates in styles. By default, it does not reset the style, so it may be necessary to begin a program's output like:

display as text ...

The other styles are:


See also

Stata manual for -display-


CategoryRicottone

Stata/Display (last edited 2025-10-24 17:04:02 by DominicRicottone)