HW1 - Meeryu Chung STAT430 HW1 September 9 2011 1.1*1.1(a DATA COLLEGE INPUT ID AGE GENDER $ GPA CSCORE*Add the index INDEX = GPA 3*CSCORE/500

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

View Full Document Right Arrow Icon
Meeryu Chung STAT430 HW1 September 9, 2011 1.1 /*1.1 (a)*/ DATA COLLEGE; INPUT ID AGE GENDER $ GPA CSCORE; /*Add the index*/ INDEX = GPA + 3 *CSCORE/ 500 ; DATALINES ; 1 18 M 3.7 650 2 18 F 2.0 490 3 19 F 3.3 580 4 23 M 2.8 530 5 21 M 3.5 640 ; /*1.1 (b)*/ PROC MEANS DATA =COLLEGE MAXDEC=1; VAR GPA CSCORE; RUN ; The MEANS Procedure Variable N Mean Std Dev Minimum Maximum GPA 5 3.1 0.7 2.0 3.7 CSCORE 5 578.0 69.1 490.0 650.0 /*1.1 (c)*/ PROC SORT DATA =COLLEGE; BY INDEX; RUN ; PROC PRINT DATA =COLLEGE; TITLE "Students in Index Order" ; ID ID; VAR GPA CSCORE INDEX; RUN ; Students in Index Order ID GPA CSCORE INDEX 2 2.0 490 4.94 4 2.8 530 5.98 3 3.3 580 6.78 5 3.5 640 7.34 1 3.7 650 7.60 1.2
Background image of page 1

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

View Full DocumentRight Arrow Icon
DATA Exercise1_2; INPUT SUBJ $ 1 - 3 HEIGHT 4 - 5 WT_INIT 6 - 8 WT_FINAL 9 - 11 ; BMI_INIT = (WT_INIT/ 2.2 ) / (HEIGHT* .0254 )**2; BMI_FINAL = (WT_FINAL/ 2.2 ) / (HEIGHT* .0254 )**2; BMI_DIFF = BMI_FINAL - BMI_INIT; DATALINES ; 00768155150 00272250240 00563240200 00170345298 ; PROC SORT DATA
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/09/2012 for the course STAT 430 taught by Professor Staff during the Spring '08 term at Maryland.

Page1 / 5

HW1 - Meeryu Chung STAT430 HW1 September 9 2011 1.1*1.1(a DATA COLLEGE INPUT ID AGE GENDER $ GPA CSCORE*Add the index INDEX = GPA 3*CSCORE/500

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

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