SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Quiz: Computing Statistics for Numeric Variables

Select the best answer for each question and click Score My Quiz.

  1. Which of the following statements is true?

     a.   By default, PROC MEANS produces statistics for every variable in a data set.
     b.   By default, PROC MEANS output uses the BEST. format.
     c.   At least one data set variable must be specified in the PROC MEANS statement.
     d.   At least one statistics keyword must be specified in the PROC MEANS statement.

  2. 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.

  3. Which PROC MEANS statement option will produce output with one decimal place?

     a.   proc means data=clinic.diabmed decimal=1;
     b.   proc means data=clinic.diabmed digits=1;
     c.   proc means data=clinic.diabmed format=1;
     d.   proc means data=clinic.diabmed maxdec=1;

  4. Which statement will limit 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;

  5. The data set Survey.Health includes the following variables. Which one would you want to exclude from analysis?

     a.   IDnum
     b.   Age
     c.   Height
     d.   Weight

  6. Which statement is true about using a CLASS statement to group your data?

     a.   CLASS variables must be sorted.
     b.   Summary statistics are computed for CLASS variables.
     c.   CLASS group processing is most efficient when categorizing data with many variables.
     d.   CLASS variables can be either character or numeric.

  7. The data set Survey.Health includes the following variables. Which one is the best choice for categorizing the analysis?

     a.   IDnum
     b.   Sex
     c.   Height
     d.   Weight

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

     a.   BY variables must be sorted.
     b.   Summary statistics are computed for BY variables.
     c.   BY group processing is preferred when categorizing data with few variables.
     d.   BY group processing will overwrite your data set with the newly grouped observations.

  9. Complete the program shown below by selecting the missing option.
    proc sort data=parts.widgets ... ;
       by region;
    run;
    proc means data=work.widgsort;
       by region;
    run;

     a.   class=region
     b.   sort=region
     c.   in=work.widgsort
     d.   out=work.widgsort

  10. 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;



back||next

Terms of Use & Legal Information | Privacy Statement