Answered step by step
Verified Expert Solution
Link Copied!

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.
1) Open nhanes_2013_ch1.csv.
2) Examine the data types for DUQ200, RIDAGEYR, and RIAGENDR,
and fix data types if needed.
3) Code missing values appropriately for DUQ200, RIDAGEYR, and
RIAGENDR
4) Create a bar chart showing the percentage of NHANES participants
answering yes and no to marijuana use.
5) Recode age into a new variable called age.cat with 4 categories:
1829,3039,4049,5059
6) Create a bar chart of marijuana use by age group with color dark blue, green gray and brown.
7) Add a prolog and comments to your code
8) 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 10 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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions