Question
1. Are US students more likely to favor legalizing marijuana? The following two variables will be used. international.student International student? Two categories U.S. or International
1. Are US students more likely to favor legalizing marijuana? The following two variables will be used. international.student International student? Two categories "U.S." or "International" legalizing.marijuana Favor legalizing marijuana? Two categories "Yes" or "No"(although three categories are available, we only care about yes or no group) (a) Run the command below to construct a contingency table. table(international.student,legalizing.marijuana) (b) Let p1 and p2 denote the proportion favoring marijuana legalization among international students and US students, respectively. Use prop.test() command to construct a 95% confidence interval for comparing p1 and p2. Can you conclude which of p1 and p2 is larger? Explain. (c) Test your conclusion in (b) at the .05 level using prop.test() command. You only need to show your code and output. (d) Interpret the reported p-value.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started