By admin | August 6, 2009

SAS Certified Base Programmer 50 Questions (25)

The following report is generated:

Style
of homes n Asking
Price
----------------------------
CONDO    4 $99,313
RANCH    4 $68,575
SPLIT    3 $77,983
TWOSTORY 4 $83,825

Which of the following steps created the report?
a.

proc freq data=sasuser.houses;
    tables style price /nocum;
    format price dollar10.;
    label style="Style of homes"
        price="Asking price";
run;


b.

proc print data=sasuser.houses;
    class style;
    var price;
    table style,n price*mean*f=dollar10.;
    label style="Style of homes"
        price="Asking price";
run;


c.

proc means data=sasuser.houses n mean;
    class style;
    var price;
    format price dollar10.;
    label style="Style of homes"
        price="Asking price";
run;


d.

proc report data=sasuser.houses nowd headline;
    column style n price;
    define style / group "Style of homes";
    define price / mean format=dollar8.
        "Asking price";
run;

One comment | Add One

  1. admin - 08/9/2009 at 8:33 pm

    D

Leave a Comment

Leave a Reply

Your email address will not be published.