examsolSTAT475F11

examsolSTAT475F11 - STAT 475 TAKE-HOME MIDTERM EXAM...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
STAT 475 TAKE-HOME MIDTERM EXAM SOLUTION Exercises for Handout 9 material: Quiz for Chapter 8 in the textbook Q1: Answer is A . The group option is used to get total values which are computed for all numeric variables for different values of group variables. Thus, this SAS code can get every total values of sqfeet bedrooms price for every value of group variable of style. B is incorrect because this SAS code can get every total values of sqfeet bedrooms price for every value of group variable of style, not list all of observations. C is incorrect because group option is to compute totals for all numeric variables, not including character variable. D is incorrect because this SAS code can get every total values of sqfeet bedrooms price for every value of group variable of style, not list all of observations. Q2: Answer is D . Rows in a report are ordered according to an order variable. It’s only list observations, couldn’t create summary reports and only the first occurrence of each order variable value in a set of rows that have the same value for all order variables are displayed in report. A is not perfect answer because B and C are also correct. B is not perfect answer because A and C are also correct. C is not perfect answer because A and B are also correct. Q3: Answer is B . The headings are underlined and there is a blank line under all column headings, so headline and headskip are used. The values of style are center, so center is used. And price is displayed in Dollars format, there are many spaces between variables, so spacing and format options are used. A is incorrect because there are some other options like CENTER, HEADLINE, HEADSKIP, WIDTH, or SPACING are used beside FORMAT, and SKIPLINE is illegal option in SAS. C is incorrect because there are some other options like CENTER, HEADLINE, HEADSKIP, WIDTH, SPACING, or format are used beside SPACING. D is incorrect because there are some other options like HEADSKIP, WIDTH, or SPACING are used beside CENTER, FORMAT, and HEADLINE. Q4: Answer is B . The group option is to create a summary report, and use mean and max options to specify average and maximum values. In this case, style is group variable, and define mean for bedrooms, and define max for baths. A is incorrect because group should be used to define style to build a summary report. C is incorrect because group not order should be used to define style to build a summary report. D is incorrect because it missed a group to define style, and mean and max to define bedrooms and baths. Q5: Answer is C . In this case, bedbathratio is a computed variable, so it should be included in the COLUMN statement to the right of variables, be defined as COMPUTED in the DEFINE statement, and be in the COMPUTE block. The COMPUTE block is closed with an ENDCOMP statement. The variables used for calculations should be named with compound names that include the original variable name, period delimiter, and the statistics A is incorrect because bedbathratio isn’t included in the COLUMN statement to the right of variables. B is incorrect because bedbathratio should be defined as COMPUTED in the DEFINE statement, not order.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 20

examsolSTAT475F11 - STAT 475 TAKE-HOME MIDTERM EXAM...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online