# HW1 - 3.30 a colPercents(ex3.30 1 2 3 1 23.7 21.1 21.4 2...

• Homework Help
• 8

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

3.30 a. colPercents(ex3.30) 1 2 3 1 23.7 21.1 21.4 2 60.5 60.6 49.6 3 15.8 18.3 29.0 Total 100.0 100.0 100.0 Count 76.0 71.0 131.0 > rowPercents(ex3.30) 1 2 3 Total Count 1 29.5 24.6 45.9 100.0 61 2 29.9 27.9 42.2 100.0 154 3 19.0 20.6 60.3 99.9 63 > ex3.30 [,1] [,2] [,3] [1,] 18 15 28 [2,] 46 43 65 [3,] 12 13 38 > x=scan() 1: 61 154 63 4: Read 3 items > x = matrix(x,ncol=3) > rowPercents(x) 1 2 3 Total Count 1 21.9 55.4 22.7 100 278 a. percent of mothers who did not receive adequate medical care during pregnancy= 22.7% b. scanned in preterm totals from book into a matrix and found their relative percentages, and added pre term percentages z=scan() 1: 76 71 131 4: Read 3 items > z=matrix(z,ncol=3) > > z [,1] [,2] [,3] [1,] 76 71 131 > rowPercents(z)

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

3.36. b Used function colPercents to find the % of all male drivers.

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

This is the end of the preview. Sign up to access the rest of the document.
• Spring '07
• RichardD.DeVeaux
• medical care, Total Count, adequate medical care

{[ snackBarMessage ]}

### What students are saying

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern