This procedure can help familiarize the analyst with the data contained
in the variable being analyzed. A frequency distribution is presented for all of the
values contained for the variable name specified.
In the example below, data has been obtained from the Bureau of Labor Statistics. One of the
variable names is "agglvl" which is the "aggregation level". The purpose of this procedure
is to determine which values are contained in this variable name and their frequency. This
can be accomplished by running the "DOM2" procedure, and specifying the variable name. In addition,
an html report is produced which shows the counts and frequencies in a graphical manner for easier
viewing of the population data.
Syntax
proc dom2 data=INPUTFILE ;
out = OUTPUTFILE;
var VARNAME;
Parameters Used
There are three parameters for the DOMAIN procedure:
INPUTFILE - the name of the variable to be stored in the registry
OUTPUTFILE - the Registry value to be assigned
VARNAME - the name of the variable to be analyzed
Example Script
*;
* dom2.ezs;
* domain for a single variable;
* show the values for the variable name contained in the file;
libname test 'c:\cloop\bls\tab';
libname drug 'c:\ezs\tab\tested';
proc dom2 data=test.cewenb;
out = drug.dom2;
var agglvl;
run;
The Proc Domain procedure is part of EZ-R Stats for Windows - Professional Edition. View an overview of EZ-R Stats for Windows. Download EZ-R Stats for Windows and other products.
Analysts interested in Proc Domain may also be interested in Proc Means and Proc Univariate.
