Quantcast
Channel: Statistics Help @ Talk Stats Forum - SAS
Viewing all articles
Browse latest Browse all 310

Need help in understanding the output of SAS code!

$
0
0
Hi,
I help help in understanding the o/p of the SAS tabulate code:

Example Here again are the boat data containing the name of each boat, its home port,
whether it is a sailing or power vessel, the type of boat (schooner, catamaran, or yacht), and the
price of an excursion.
Silent Lady Maalea sail sch 75.00
America II Maalea sail yac 32.95
Aloha Anai Lahaina sail cat 62.00
Ocean Spirit Maalea power cat 22.00
Anuenue Maalea sail sch 47.50
Hana Lei Maalea power cat 28.99
Leilani Maalea power yac 19.99
Kalakaua Maalea power cat 29.50
Reef Runner Lahaina power yac 29.95
Blue Dolphin Maalea sail cat 42.95

CODE:

DATA boats;
INFILE 'c:\MyRawData\Boats.dat';
INPUT Name $ 1-12 Port $ 14-20 Locomotion $ 22-26 Type $ 28-30
Price 32-36;

PROC TABULATE DATA = boats;
CLASS Locomotion Type;
VAR Price;
TABLE Locomotion ALL, MEAN*Price*(Type ALL);
TITLE 'Mean Price by Locomotion and Type';
RUN;

:wave:Somebody please explain how the values in the table are derived.The exact calculations!

#The question is from little sas book 3rd edition page number 126
Attached Images
 

Viewing all articles
Browse latest Browse all 310

Trending Articles