hw8solution[1]

# hw8solution[1] - Homework 8 Solution Chapter 7. 1. SAS...

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

Homework 8 Solution Chapter 7. 1. SAS code: options ps=55 ls=80 nodate; data in1; input gender \$ rank \$ count; cards; female instructor 12 female asstprof 15 female assocprof 18 female fullprof 7 male instructor 21 male asstprof 25 male assocprof 30 male fullprof 22 run; proc freq; tables gender*rank/chisq; weight count; run; SAS output: The FREQ Procedure Table of gender by rank gender rank Frequency| Percent | Row Pct | Col Pct |assocpro|asstprof|fullprof|instruct| Total ---------+--------+--------+--------+--------+ female | 18 | 15 | 7 | 12 | 52 | 12.00 | 10.00 | 4.67 | 8.00 | 34.67 | 34.62 | 28.85 | 13.46 | 23.08 | | 37.50 | 37.50 | 24.14 | 36.36 | ---------+--------+--------+--------+--------+ male | 30 | 25 | 22 | 21 | 98 | 20.00 | 16.67 | 14.67 | 14.00 | 65.33 | 30.61 | 25.51 | 22.45 | 21.43 | | 62.50 | 62.50 | 75.86 | 63.64 | ---------+--------+--------+--------+--------+ Total 48 40 29 33 150 32.00 26.67 19.33 22.00 100.00 Statistics for Table of gender by rank Statistic DF Value Prob ------------------------------------------------------ Chi-Square 3 1.7733 0.6208 Likelihood Ratio Chi-Square 3 1.8561 0.6028 Mantel-Haenszel Chi-Square 1 0.2449 0.6207 Phi Coefficient 0.1087 Contingency Coefficient 0.1081 Cramer's V 0.1087 Sample Size = 150 Do not reject Ho with p=0.6208. 2. SAS code: data in2; input therapy compl \$ count; cards;

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

View Full Document
1 1:Yes 89 1 2:No 911 2 1:Yes 127 2 2:No 873 run; proc freq; tables therapy*compl/relrisk; weight count; run; SAS output: The FREQ Procedure Table of therapy by compl therapy compl Frequency| Percent | Row Pct | Col Pct |1:Yes |2:No | Total ---------+--------+--------+
This is the end of the preview. Sign up to access the rest of the document.

## This document was uploaded on 07/16/2009.

### Page1 / 7

hw8solution[1] - Homework 8 Solution Chapter 7. 1. SAS...

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

View Full Document
Ask a homework question - tutors are online