Frequencie distributions

1.1
Other Commands How to...

freq variable1 [variable2 ...] [/M /Missing] [/N /Nomissing]
Fre

The FREQ command will count each category for the specified variable(s) and give the absolute and relative frequencies for each category.

The command FREQ * will produce frequencies for all the variables in your questionnaire, a convenient way to begin the analysis of a new data set. FREQ with a series of variable names following, separated by spaces, will do separate frequencies for each of the variables listed.

Output:


 SEX       No.  %       Cum % 
------+-----------------------
F     |    44   58.67   58.67
M     |    31   41.33   100.00
------+-----------------------
Total |    75   100
 

The number (frequency) in each category is given first, followed by the percentage of the total and the cumulative percentage


Examples and Hints
FREQ SEX                          (A Frequency distribution of variable SEX in the data table)
FREQ SEX CSTATUS                  (An independent frequency distribution of variables SEX and CSTATUS in the data table)
FRE  OBESITY SMOKER HBP           (An independent frequency distribution for each variable: OBESITY, SMOKER and HBP)
FRE  OBESITY SMOKER HBP if sex = 1           (Same frequency tables but only for persons with sex=1)
Notice: Remember FREQ and FRE are equivalents.
You can use a FREQ command with a temporary If (see example above)

Related Commands:
Describe Select Count [if] Stattable
Options:
/M or /Missing
/NM or NoMissing
/NC
/D1 /D0

Includes observations with missing data (.) in that field
Records with missing in ANY variable are excluded
Cumulative percentage excluded
Use 1 or 0 decimals for the percentages. The default value is 2

Output variables:
No ouput variables
Output definition:
set table design freq=line[box][filled][system] Output design will be acording with this command. The default value is line
References:
No specific reference
Top