Answered step by step
Verified Expert Solution
Question
1 Approved Answer
recommend that you read about the variables in this dataset. Use the chisqtestGC function to test if sex and marijuana (believing that marijuana should be
recommend that you read about the variables in this dataset.
- Use the chisqtestGC function to test if sex and marijuana (believing that marijuana should be legalized) are dependent). (alpha = 0.05). Include all of the steps of a hypothesis test that you learned about this semester. Paste a screenshot of your R results here. (2 points)
- What are the mean and median age of the sample? How many people are in the sample? Paste a screenshot of your R results here. (1 point)
- (2 points) Run a logistic regression model with sex as the independent variable and marijuana as the dependent variable.
Paste a screenshot of your R results here.
Write a plain English interpretation of the odds ratio and 95% confidence interval.
- Pretend that I conduct an analysis of the relationship between believing that marijuana should be legalized) and sex are dependent and stratify my analysis by age. Here are my results:
Group | OR (95%) for the relationship between sex and believing that marijuana should be legalized (females are the referent group) |
18-35 year olds | 0.9 (0.7,1.1) |
36-64 year olds | 0.4 (0.2, 0.5) |
Based on these results, do you think that age is an effect modifier, confounder, or neither? Briefly explain why. (2 points)
- Pretend that we want to investigate if education (high school, 1-4 years of college, > 4 years of college) is a confounder of the relationship between sex and believing that marijuana should be legalized. Explain the information that you need to make this assessment. Be specific. (3 points)
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