42.1k views
2 votes
Which PROC FREQ step creates the results shown here?

a. proc freq data= ;
tables Region nocum;
run;

b. proc freq data= levels;
tables Region / nocum;
run;

c. proc freq data= nlevels;
tables Region / nocum;
run;

d. proc freq data= / levels;
tables Region nocum;
run;

1 Answer

0 votes

Final answer:

The correct SAS code to create a frequency distribution table for the variable 'Region' without cumulative frequencies is 'proc freq data=levels; tables Region / nocum; run;'. The code specifies the data set and the nocum option properly.

Step-by-step explanation:

The student's question relates to the SAS (Statistical Analysis System) code needed to generate a specific frequency distribution table without a cumulative frequency column. The correct choice among the options provided is the one that includes the correct syntax for specifying the data set and the nocum option which tells PROC FREQ not to display the cumulative frequencies alongside the frequency count for the variable 'Region'.

The correct answer is:
b. proc freq data=levels; tables Region / nocum; run;

This option correctly specifies the data set with data=levels and adjusts the table that is being produced using tables Region / nocum. The use of the slash (/) before nocum is the correct syntax to apply this option in the PROC FREQ step.

User Amarkovits
by
7.7k points