LAB1_sol -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: *-----------------------------------------------------* * PROGRAMMER: Randall Rieger * * PROGRAM: LAB1_sol.sas * * DATE: 090308 * * PURPOSE: Solutions to lab1 * * DATA: entered raw data * *-----------------------------------------------------*; TITLE1 "Lab1"; F FOOTNOTE1 "SOLUTIONS TO LAB #1"; * Set options, footnotes, form setting; o options ps=60 ls=78 nodate pageno=1; DATA WT_LOSS; INPUT IDNO FNAME $ LNAME $ TEAM $ STARTWEIGHT ENDWEIGHT; LOSS=STARTWEIGHT-ENDWEIGHT; DATALINES; 1023 David Shaw red 189 165 1049 Amelia Serrano yellow 145 124 1219 Alan Nance red 210 192 1329 Larry Goss yellow 188 174 1356 Mary Smith blue 205 203 ; RUN; /* Task #4 */ PROC CONTENTS DATA=WT_LOSS; R RUN; PROC DATASETS LIBRARY=WORK; CONTENTS DATA=WT_LOSS; RUN; Q QUIT; /* Task #5 */ PROC PRINT DATA=WT_LOSS; R RUN; PROC MEANS DATA=WT_LOSS; CLASS TEAM; VAR STARTWEIGHT ENDWEIGHT LOSS; R RUN; t title1 ""; / /* Task #6 A)YES, WT_LOSS B)TEMPORARY. THERE IS NO LIBNAME OR LIBNAME.FILENAME USED IN THE PROGRAM C) NO, SPACES ARE NOT ACCEPTABLE IN SAS DATASET (OR VARIABLE) NAMES D D) THE 1ST, 3RD, AND 5TH ARE ACCEPTABLE. * */ / /*TASK #7*/ LIBNAME LAB1 'f:\STA511_2008'; /*You may also choose various other library locations*/ DATA LAB1.WEIGHT_PERM; INPUT IDNO FNAME $ LNAME $ TEAM $ STARTWEIGHT ENDWEIGHT; LOSS=STARTWEIGHT-ENDWEIGHT; DATALINES; 1023 David Shaw red 189 165 1049 Amelia Serrano yellow 145 124 1219 Alan Nance red 210 192 1329 Larry Goss yellow 188 174 1356 Mary Smith blue 205 203 ; RUN; PROC CONTENTS DATA=lab1.weight_perm; R RUN; PROC DATASETS LIBRARY=LAB1; CONTENTS DATA=WEIGHT_PERM; RUN; Q QUIT; PROC PRINT DATA=LAB1.WEIGHT_PERM; R RUN; PROC MEANS DATA=LAB1.WEIGHT_PERM; CLASS TEAM; VAR STARTWEIGHT ENDWEIGHT LOSS; R RUN; ...
View Full Document

This note was uploaded on 10/01/2009 for the course STA 511 taught by Professor Scottmcclintock during the Spring '09 term at West Chester.

Page1 / 2

LAB1_sol -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online