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

     a.   median.
     b.   range.
     c.   standard deviation.
     d.   standard error of the mean.

  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;

  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

  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 the newly grouped observations.

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

    Survive Sex N Obs Variable N Mean Std Dev Minimum Maximum
    DIED 1 4 Arterial
    Heart
    Cardiac
    Urinary
    4
    4
    4
    4
    92.5
    111.0
    176.8
    98.0
    10.5
    53.4
    75.2
    186.1
    83.0
    54.0
    95.0
    0.0
    103.0
    183.0
    260.0
    377.0
      2 6 Arterial
    Heart
    Cardiac
    Urinary
    6
    6
    6
    6
    94.2
    103.7
    318.3
    100.3
    27.3
    16.7
    102.6
    155.7
    72.0
    81.0
    156.0
    0.0
    145.0
    130.0
    424.0
    405.0
    SURV 1 5 Arterial
    Heart
    Cardiac
    Urinary
    5
    5
    5
    5
    77.2
    109.0
    298.0
    100.8
    12.2
    32.0
    139.8
    60.2
    61.0
    77.0
    66.0
    44.0
    88.0
    149.0
    410.0
    200.0
      2 5 Arterial
    Heart
    Cardiac
    Urinary
    5
    5
    5
    5
    78.8
    100.0
    330.2
    111.2
    6.8
    13.4
    87.0
    152.4
    72.0
    84.0
    256.0
    12.0
    87.0
    111.0
    471.0
    377.0

     a.   class sex survive;
     b.   class survive sex;
     c.   by sex survive;
     d.   by survive sex;

  6. Which program can be used to create the following output?

    Sex N Obs Variable N Mean Std Dev Minimum Maximum
    F 11 Age
    Height
    Weight
    11
    11
    11
    48.9090909
    63.9090909
    150.4545455
    13.3075508
    2.1191765
    18.4464828
    16.0000000
    61.0000000
    102.0000000
    63.0000000
    68.0000000
    168.0000000
    M 9 Age
    Height
    Weight
    9
    9
    9
    44.0000000
    70.6666667
    204.2222222
    12.3895117
    2.6457513
    30.2893454
    15.0000000
    66.0000000
    140.0000000
    54.0000000
    75.0000000
    240.0000000

     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.

  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

  8. Frequency distributions work best with variables that contain

     a.   continuous values.
     b.   numeric values.
     c.   categorical values.
     d.   unique values.

  9. Which PROC FREQ step produced this two-way table?

    Frequency
    Percent
    Row Pct
    Col Pct
    Table of Weight by Height
    Weight Height Total
    < 5'5" 5'5-10" > 5'10"
    < 140 2
    10.00
    100.00
    28.57
    0
    0.00
    0.00
    0.00
    0
    0.00
    0.00
    0.00
    2
    10.00
     
     
    140-180 5
    25.00
    50.00
    71.43
    5
    25.00
    50.00
    62.50
    0
    0.00
    0.00
    0.00
    10
    50.00
     
     
    > 180 0
    0.00
    0.00
    0.00
    3
    15.00
    37.50
    37.50
    5
    25.00
    62.50
    100.00
    8
    40.00
     
     
    Total 7
    35.00
    8
    40.00
    5
    25.00
    20
    100.00

     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;

  10. Which PROC FREQ step produced this table?

    Percent
    Table of Sex by Weight
    Sex Weight Total
    < 140 140-180 > 180
    F 10.00 45.00 0.00 55.00
    M 0.00 5.00 40.00 45.00
    Total 2
    10.00
    10
    50.00
    8
    40.00
    20
    100.00

     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;