29.12.2014 Views

corresponding pdf

corresponding pdf

corresponding pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1500<br />

count<br />

1000<br />

500<br />

DeathPenalty<br />

Favor<br />

Oppose<br />

0<br />

Favor Oppose NA<br />

DeathPenalty<br />

(b) Use the table command and the summary command in R on the gun ownership variable.<br />

additional information does the summary command give that the table command does not<br />

What<br />

table(GSS$OwnGun)<br />

No Refused Yes<br />

605 9 310<br />

summary((GSS$OwnGun))<br />

No Refused Yes NA's<br />

605 9 310 1841<br />

The summary command shows the number (1841) of missing values.<br />

(c) Create a contingency table comparing responses to the death penalty to the question about gun<br />

ownership.<br />

T2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!