Output and Description
1. The univariate graph of number of the US citizens among the respondents.
This graph is unimodal.
2. The univariate graph of number of born and naturalized US citizens among the respondents.
This graph is also unimodal.
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.
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.
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.