Creating Graphs

Program

creating-graphs

Output and Description

1. The univariate graph of number of the US citizens among the respondents.

This graph is unimodal.citizenship-graph

2. The univariate graph of number of born and naturalized US citizens among the respondents.

This graph is also unimodal.born-or-naturalized-graph

3. The univariate graph of attitude towards homosexuality among the respondents.

As the previous two, this graph is unimodal, with its highest peak at the first response “Strongly agree” for the question “Some people believe that homosexuality is immoral. To what extent do you agree or disagree with this perspective?”. It is skewed to the right.attitude-towards-homosexuality

4. The bivariate graph of relationship between being born or naturalized US citizen and attitude towards homosexuality among the respondents.

The graph below shows relationship between being born or naturalized US citizen and the extent a person agrees with the statement that homosexuality is immoral.relationship-between-born-or-naturalized-and-attitude

Taking into account the purpose of my research, I decided that for this graph the response variable should be the attitude, and the explanatory (independent) is the fact of being born or naturalized. Both these variables are categorical, and the response variable has four categories. They are “Strongly disagree”, “Strongly agree”, “Somewhat agree”, and “Somewhat disagree”. I grouped them and recoded so that “Strongly disagree” and “Somewhat disagree” return 0, while “Strongly agree” and “Somewhat agree” return 1.

At the graph, we can see that born US citizens are more likely to think that homosexuality is immoral, than naturalized ones. Is proves my hypothesis.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s