
FREQUENCY PLOTName:
There are 4 types of frequency plots:
The frequency plot and the histogram have the same information except the frequency plot has lines connecting the frequency values whereas the histogram has bars at the frequency values.
where <type> is one of FREQUENCY, RELATIVE FREQUENCY, CUMULATIVE FREQUENCY, CUMULATIVE RELATIVE FREQUENCY; <y> is the variable of raw data values which will appear on the horizontal axis; and where the <SUBSET/EXCEPT/FOR qualification> is optional. This syntax is used when you have raw data. Note that <y> can be either a variable or a matrix. If <y> is a matrix, then a frequency plot will be generated for all values in that matrix.
where <type> is one of FREQUENCY, RELATIVE FREQUENCY, CUMULATIVE FREQUENCY, CUMULATIVE RELATIVE FREQUENCY; <y> is a variable containing precomputed frequencies; <x> is a variable containing the bin midpoints; and where the <SUBSET/EXCEPT/FOR qualification is optional. This syntax is used when you have grouped data with equisized bins.
where <type> is one of FREQUENCY, RELATIVE FREQUENCY, CUMULATIVE FREQUENCY, CUMULATIVE RELATIVE FREQUENCY; <y> is a variable containing precomputed frequencies; <xlow> is a variable containing the lower limits for the bins; <xhigh> is a variable containing the upper limits for the bins; and where the <SUBSET/EXCEPT/FOR qualification is optional. This syntax is used when you have grouped data with unequal sized bins.
where <type> is one of FREQUENCY, RELATIVE FREQUENCY, CUMULATIVE FREQUENCY, CUMULATIVE RELATIVE FREQUENCY; <y1> ... <yk> is a list of response variables; and where the <SUBSET/EXCEPT/FOR qualification> is optional. This syntax will overlay multiple frequency plots on the same plot. Note that the response variables (<y1> ... <yk> can be either variables or matrices (or a mix of variables and matrices). For matrices, a frequency plot will be generated for all values in the matrix.
where <type> is one of FREQUENCY, RELATIVE FREQUENCY, CUMULATIVE FREQUENCY, CUMULATIVE RELATIVE FREQUENCY; <y> is the response variable; <x1> is a groupid variable; and where the <SUBSET/EXCEPT/FOR qualification> is optional. This syntax will generate a frequency plot for each distinct value in the groupid variable. The frequency plots will be generated on the same page.
where <type> is one of FREQUENCY, RELATIVE FREQUENCY, CUMULATIVE FREQUENCY, CUMULATIVE RELATIVE FREQUENCY; <y> is the response variable; <x1> is the first groupid variable; <x2> is the second groupid variable; and where the <SUBSET/EXCEPT/FOR qualification> is optional. This syntax will cross tabulate the groupid variables and generate a frequency plot for each unique combination of values for the <x1> and <x2> groupid variables. The frequency plots will be generated on the same page.
RELATIVE FREQUENCY PLOT TEMP CUMULATIVE FREQUENCY PLOT TEMP CUMULATIVE RELATIVE FREQUENCY PLOT TEMP FREQUENCY PLOT COUNTS STATE RELATIVE FREQUENCY PLOT COUNTS STATE CUMULATIVE FREQUENCY PLOT COUNTS STATE CUMULATIVE RELATIVE FREQUENCY PLOT COUNTS STATE
LET YFREQ = YPLOT LET XVAL = XPLOT Then the variables YFREQ and XVAL essentially contain a frequency table. There is a LET subcommand called FREQUENCY. However, it does not generate a frequency table in the sense that a frequency plot does. You can also use the command
for this purpose.
A number of alternative choices for class width can be set with the command
Enter HELP HISTOGRAM CLASS WIDTH for details.
To revert to the default, enter
David Scott (1992), "Multivariate Density Estimation", John Wiley, (chapter 3).
LET Y = NORMAL RANDOM NUMBERS FOR I = 1 1 1000 MULTIPLOT 2 2 MULTIPLOT CORNER COORDINATES 0 0 100 100 MULTIPLOT SCALE FACTOR 2 TITLE CASE ASIS TITLE OFFSET 2 . XLIMITS 5 5 TITLE Counts Frequency Plot FREQUENCY PLOT Y TITLE Relative Frequency Plot RELATIVE FREQUENCY PLOT Y TITLE Cumulative Counts Frequency Plot CUMULATIVE FREQUENCY PLOT Y TITLE Cumulative Relative Frequency Plot CUMULATIVE RELATIVE FREQUENCY PLOT Y END OF MULTIPLOT  
Privacy
Policy/Security Notice
NIST is an agency of the U.S. Commerce Department.
Date created: 11/30/2010 