Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use the National Health and Nutrition Examination Survey ( NHANES ) data ( attached is the file ) to examine marijuana use in the United
Use the National Health and Nutrition Examination Survey NHANES data
attached is the file to examine marijuana use in the United States.
Complete the following tasks to explore whether age is related to marijuana use in
the United States.
Open nhaneschcsv
Examine the data types for DUQ RIDAGEYR, and RIAGENDR,
and fix data types if needed.
Code missing values appropriately for DUQ RIDAGEYR, and
RIAGENDR
Create a bar chart showing the percentage of NHANES participants
answering yes and no to marijuana use.
Recode age into a new variable called age.cat with categories:
Create a bar chart of marijuana use by age group
Add a prolog and comments to your code
Following the R code in your code file, use comments to describe
what you found. Given what you found and the information in the
chapter, what do you predict will happen with marijuana legalization
in the next years? Discuss how the omission of older people from
the marijuana use question for NHANES influenced your
prediction. Write your prediction and discussion in comments at the
end of your code file.
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