# SAS Chapter 9 Producing Descriptive Statistics

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
| By Moxleyv
M
Moxleyv
Community Contributor
Quizzes Created: 38 | Total Attempts: 21,273
Questions: 10 | Attempts: 1,064

Settings

Practice for the SAS basic certification exam.

• 1.

### The default statistics produced by the MEANS procedure are n-count, mean, minimum, maximum, and ...

• A.

Median

• B.

Range

• C.

Standard deviation

• D.

Standard error of the mean

C. Standard deviation
Explanation
By default, the MEANS procedure produces the n-count, mean, minimum, maximum, and standard deviation.

Rate this question:

• 2.

### Which statement will limit a PROC MEANS analysis to the variables Boarded, Transfer, and Deplane?

• A.

By boarded transfer deplane;

• B.

Class boarded transfer deplane;

• C.

Output boarded transfer deplane;

• D.

Var boarded transfer deplane;

D. Var boarded transfer deplane;
Explanation
To specify the variables that PROC MEANS analyzes, add a VAR statement and list the variable names.

Rate this question:

• 3.

### The data set Survey.Health includes the following variables.  Which is a poor candidate for PROC MEANS analysis?

• A.

IDnum

• B.

Age

• C.

Height

• D.

Weight

A. IDnum
Explanation
Unlike Age, Height, or Weight, the values of IDnum are unlikely to yield any useful statistics.

Rate this question:

• 4.

### Which of the following statements is true regarding BY group processing?

• A.

BY variables must be either indexed or sorted.

• B.

Summary statistics are computed for BY variables.

• C.

BY group processing is preferred when you are categorizing data that contains few variables.

• D.

BY group processing overwrites your data set with newly grouped observations.

A. BY variables must be either indexed or sorted.
Explanation
Unlike CLASS processing, BY group processing requires that your data already be indexed or sorted in the order of the BY variables. You might need to run the SORT procedure before using PROC MEANS with a BY group.

Rate this question:

• 5.

### Which group processing statement produced the PROC MEANS output shown below?

• A.

Class sex survive;

• B.

Class survive sex;

• C.

By sex survive;

• D.

By survive sex;

B. Class survive sex;
Explanation
A CLASS statement produces a single large table, whereas BY group processing creates a series of small tables. The order of the variables in the CLASS statement determines their order in the output table.

Rate this question:

• 6.

### Which program can be used to create the following output?

• A.

Proc means data=clinic.diabetes;     var age height weight;     class sex;     output out=work.sum_gender        mean=AvgAge AvgHeight AvgWeight; run;

• B.

Proc summary data=clinic.diabetes print;    var age height weight; class sex;    output out=work.sum_gender       mean=AvgAge AvgHeight AvgWeight; run;

• C.

Proc means data=clinic.diabetes noprint;    var age height weight;    class sex;    output out=work.sum_gender       mean=AvgAge AvgHeight AvgWeight; run;

• D.

Both a and b.

D. Both a and b.
Explanation
You can either PROC MEANS or PROC SUMMARY to create the table. Adding a PRINT option to the PROC SUMMARY statement produces the same report as if you used PROC MEANS.

Rate this question:

• 7.

### By default, PROC FREQ creates a table of frequencies and percentages for which data set variables?

• A.

Character variables

• B.

Numeric variables

• C.

Both character and numeric variables

• D.

None: variables must always be specified

C. Both character and numeric variables
Explanation
By default, PROC FREQ creates a table for all variables in a data set.

Rate this question:

• 8.

### Frequency distributions work best with variables that contain

• A.

Continuous values.

• B.

Numeric values.

• C.

Categorical values.

• D.

Unique values.

C. Categorical values.
Explanation
Both continuous values and many unique values can result in lengthy and meaningless tables. Frequency distributions work best with categorical values.

Rate this question:

• 9.

### Which PROC FREQ step produced this two-way table?

• A.

Proc freq data=clinic.diabetes;    tables height weight;    format height htfmt. weight wtfmt.; run;

• B.

Proc freq data-clinic.diabetes;    tables weight height;    format weight wtfmt. height htfmt.; run;

• C.

Proc freq data=clinic.diabetes;    tables height*weight;    format height htfmt. weight wtfmt.; run;

• D.

Proc freq data=clinic.diabetes;    tables weight*height;    format weight wtfmt. height htfmt.; run;

D. Proc freq data=clinic.diabetes;    tables weight*height;    format weight wtfmt. height htfmt.; run;
Explanation
An asterisk is used to join the variables in a two-way TABLES statement. The first variable forms the table rows, and the second variable forms the table columns.

Rate this question:

• 10.

### Which PROC FREQ step produced this table?

• A.

Proc freq data=clinic.diabetes;    tables sex weight / list;    format weight wtfmt.; run;

• B.

Proc freq data=clinic.diabetes;    tables sex*weight / nocol;    format weight wtfmt.; run;

• C.

Proc freq data=clinic.diabetes;    tables sex weight / norow nocol;    format weight wtfmt.; run;

• D.

Proc freq data=clinic.diabetes;    tables sex*weight / nofreq norow nocol;    format weight wtfmt.; run;

D. Proc freq data=clinic.diabetes;    tables sex*weight / nofreq norow nocol;    format weight wtfmt.; run;
Explanation
An asterisk is used to join the variables in cross tabulation tables. The only results shown in this table are cell percentages. The NOFREQ option supresses cell frequences, the NOROW option suppresses row percentages, and the NOCOL option suppresses column percentages.

Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

• Current Version
• Mar 21, 2023
Quiz Edited by
ProProfs Editorial Team
• Jan 28, 2013
Quiz Created by
Moxleyv

Related Topics