Frequencie distributions | 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
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.
/M or /Missing /NM or NoMissing /NC /D1 /D0 |
Includes observations with missing data (.) in that field |
No ouput variables |
set table design freq=line[box][filled][system] |
Output design will be acording with this command. The default value is line |
No specific reference |