{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

hw8solution[1]

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

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

View Full Document Right Arrow Icon
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;
Image of page 1

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

View Full Document Right Arrow Icon
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 ---------+--------+--------+ 1 | 89 | 911 | 1000 | 4.45 | 45.55 | 50.00 | 8.90 | 91.10 | | 41.20 | 51.07 | ---------+--------+--------+ 2 | 127 | 873 | 1000 | 6.35 | 43.65 | 50.00 | 12.70 | 87.30 | | 58.80 | 48.93 | ---------+--------+--------+ Total 216 1784 2000 10.80 89.20 100.00 Statistics for Table of therapy by compl
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern