Skip to Main Content

Stata Teaching Tools:  z-distribution

Purpose:  The purpose of this program is to display a
z-distribution with vertical lines drawn at up to four z-values. 

Download:  You can download this program from within Stata by
typing search zdemo (see
How can I used the search command to search for programs and get additional
help?
for more information about using search).

Use of program:  To use this program, type zdemo # in the
Stata command window, where the number indicates the location of the vertical
line.  There is no limit to the number of lines that can be displayed, but at least one is
required.  

Examples:  The following shows the output from issuing the zdemo
command with a value of 1.  

. zdemo 1

Image zdemocrw1

The following shows the output from issuing the zdemo command with
values of 1.5, 2 and 2.5.

. zdemo 1.5 2 2.5

Image zdemocrw2

The following shows the output from issuing the zdemo command with
values of -1, 0, 1 and 2.

. zdemo -1 0 1 2

Image zdemocrw3