4838-hw-1a - GROUP =RACE; VBAR HR / GROUP =GENDER MIDPOINTS...

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

View Full Document Right Arrow Icon
Economics 4838 – Spring 2008 Homework 1 - Answers ***HOMEWORK - CHAPTER 2; ***Problem 2-2; DATA CLINIC; INPUT ID $ 1 - 3 GENDER $ 4 RACE $ 5 HR 6 - 8 SBP 9 - 11 DBP 12 - 14 N_PROC 15 - 16 ; *( 1 point ); AVE_BP = DBP + (SBP - DBP)/ 3 ; DATALINES ; 001MW08013008010 002FW08811007205 003MB05018810002 004FB 10806801 005MW06812208204 006FB101 07404 007FW07810406603 008MW04811207006 009FB07719011009 010FB06616410610 ; *( 1 point ); PROC MEANS DATA =CLINIC N MEAN STD CLM MEDIAN ; TITLE "Clinic Data" ; VAR SBP DBP AVE_BP; RUN ; ***Problem 2-4; *( 1 point ); PROC FREQ DATA =CLINIC; TABLES GENDER / NOCUM NOPERCENT ; RUN ; *( 1 point ); PROC GCHART DATA =CLINIC; /* Alternate PROC CHART */ TITLE "Bar Chart for GENDER" ; VBAR GENDER; RUN ; ***Problem 2-8; *(2 points ); PROC CHART DATA =CLINIC; TITLE "Problem 2-8" ; VBAR GENDER /
Background image of page 1

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

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

Unformatted text preview: GROUP =RACE; VBAR HR / GROUP =GENDER MIDPOINTS = 50 TO 100 BY 10 ; RUN ; ***Problem 2-10; ***a; *( 1 point ); PROC GPLOT DATA =CLINIC; TITLE "Plot of SBP by HR" ; PLOT SBP * HR; ***b; *( 1 point ); PLOT SBP * HR = GENDER; RUN ; ***c; *( 1 point ); PROC SORT DATA =CLINIC; BY RACE; RUN ; PROC GPLOT DATA =CLINIC; TITLE "Separte Graphs for Each Race" ; BY RACE; PLOT SBP * HR; PLOT SBP * HR = GENDER; RUN ; ***Problem 2-12; PATTERN1 COLOR=BLACK VALUE=X1; PATTERN2 COLOR=BLACK VALUE=L2; PROC GCHART DATA =CLINIC; TITLE "Number of Procedures by GENDER and RACE" ; VBAR GENDER / SUMVAR =N_PROC TYPE = SUM SUBGROUP =RACE; RUN ; QUIT ;...
View Full Document

This note was uploaded on 02/27/2008 for the course ECON 4838 taught by Professor Kremenaplatikanova during the Spring '08 term at Colorado.

Page1 / 2

4838-hw-1a - GROUP =RACE; VBAR HR / GROUP =GENDER MIDPOINTS...

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