Which statement is true regarding the two PROC MEANS steps in this program?
proc means data=cars;
    class Type;
run;

proc means data=cars;
    by Type;
run;

Practice More Questions From: Analyzing and Reporting on Data

Q:

When you run this program, which title or titles appear in the final PROC PRINT results? title1 ‘The First Line’;title2 ‘The Second Line’;proc print data=sales;run;title2 ‘The Next Line’;proc print data=sales;run;title ‘The Top Line’;proc print data=sales;run;

Q:

When you run this program, which title or titles appear in the final PROC PRINT results. title1 ‘Fall Semester’;title2 ‘Students’;proc print data=school_total;run; title2 ‘Class’;proc print data=school_total;run; title ‘School’;proc print data=school_total;run;

Q:

When you run this program, which title or titles appear in the final PROC PRINT results. When you run this program, which title or titles appear in the final PROC PRINT results.title1 ‘Fall Semester’;title2 ‘Students’;proc print data=school_total;run; title2 ‘Class’;proc print data=school_total;run; title ‘School’;proc print data=school_total;run;

Q:

Macro variables can be in either single or double quotation marks when referenced in SAS code

Q:

Which statement substitutes the value of the macro variable Year in the footnote? %let Year=2018;

Q:

Which statement substitutes the value of the macro variable Year in the title? %let Year=2021;

Q:

Which statement is true based on the given program? data baseball2; set sashelp.baseball; BatAvg=CrHits/CrAtBat; label BatAvg=”Batting Average”;run;proc print data=baseball2; var Name Team BatAvg;run;proc means data=baseball2; var BatAvg; class Team;run;

Q:

Which of the following statements is true regarding column labels? Select all that apply.

Q:

Which statement is true based on the given program? data baseball2; set sashelp.baseball; BatAvg=CrHits/CrAtBat; label BatAvg=“Batting Average”;run;proc print data=baseball2 label; var Name Team BatAvg;run;proc means data=baseball2; var BatAvg;run;

Q:

Which statement is true regarding a BY statement in a reporting procedure such as PROC PRINT?

Q:

Which statement in a PROC FREQ step will create a separate frequency report for each unique value of Type?

Q:

Which statement is true regarding a BY statement in a reporting procedure such as PROC PRINT?

Q:

Which of the following statements or options will modify the appearance of a report generated by PROC FREQ?

Q:

Which statement is false concerning the FREQ procedure?

Q:

Which statements are true concerning the FREQ procedure?

Q:

Which PROC FREQ step creates the results shown here?   Region Frequency Africa 56 Asia 14 Canada 37 Central America/Caribbean 32 Eastern Europe 31 Middle East 24 Pacific 45 South America 54 United States 40 Western Europe 62  

Q:

Which PROC FREQ step creates the results shown here? Number of Variable Levels Variable Levels Region 10 Region Frequency Percent Cumulative Frequency Cumulative Percent Africa 56 14.18 56 14.18 Asia 14 3.54 70 17.72 Canada 37 9.37 107 27.09 Central America/Caribbean 32 8.10 139 35.19 Eastern Europe 31 7.85 170 43.04 Middle East 24 6.08 194 49.12 Pacific 45 11.39 239 60.51 South America 54 13.67 293 74.18 United States 40 10.12 333 84.3 Western Europe 62 15.70 395 100

Q:

Which options on the TABLES statement in PROC FREQ will generate the folowing results? Select all that apply. proc freq data=sashelp.cars; where Cylinders in (4,6) and Type='Sedan'; tables Type*Cylinders / <options>; run; Type Cylinders Frequency Percent Sedan 4 96 44.44 Sedan 6 120 55.56

Q:

Which PROC FREQ step creates a report with the number of levels for Region and frequency counts in descending sequence? Number of Variable Levels Variable Levels Region 10 Region Frequency Percent Africa 56 14.18 Asia 14 3.54 Canada 37 9.37 Central America/Caribbean 32 8.10 Eastern Europe 31 7.85 Middle East 24 6.08 Pacific 45 11.39 South America 54 13.67 United States 40 10.12 Western Europe 62 15.70

Q:

Which options on the TABLES statement in PROC FREQ will generate the folowing results? Select all that apply. proc freq data=sashelp.cars; where Cylinders in (4,6) and Type in('Sedan', 'SUV'); tables Type*Cylinders / <options>; run; Type Cylinders Frequency Percent Cumulative Frequency Cumulative Percent SUV 4 7 2.77 7 2.77 SUV 6 30 11.86 37 14.62 Sedan 4 96 37.94 133 52.57 Sedan 6 120 47.43 253 100.00  

Q:

Which options on the TABLES statement in PROC FREQ will generate the folowing results? Select all that apply. proc freq data=sashelp.cars; where Cylinders in (4,6) and Type in('Sedan', 'SUV'); tables Type*Cylinders / <options>; run; Type Cylinders Frequency Percent Row Percent Column Percent SUV 4 7 2.77 18.92 6.80   6 30 11.86 81.08 20.00   Total 37 14.62 100.00   Sedan 4 96 37.94 44.44 93.20   6 120 47.43 55.56 80.00   Total 213 85.38 100.00   Total 4 103 40.71   100.00   6 150 59.29   100.00   Total 253 100.00       

Q:

Which statement is false concerning the MEANS procedure?

Q:

The CLASS statement can only include one column at a time.

Q:

Which statement is true concerning the MEANS procedure?

Q:

An input table must be pre-sorted by the column(s) listed in the BY statement of a PROC MEANS step.

Q:

Which statement is true regarding the two PROC MEANS steps in this program? proc means data=cars; class Type;run;proc means data=cars; by Type;run;

Q:

An input table must be pre-sorted by the column(s) listed in the CLASS statement of a PROC MEANS step. An input table must be pre-sorted by the column(s) listed in the CLASS statement of a PROC MEANS step. proc means data=sashelp.heart; var Cholesterol; class Weight_Status;run;

Q:

Which statement from PROC MEANS contains valid syntax for creating a summary output table?

Q:

Which statement from PROC MEANS contains valid syntax for creating a summary output table?

Q:

Which of the following statements is true concerning OUTPUT statements?

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments