Question
Use a DATA step to create a permanent working SAS data set of nhanes1718_sub called nhanes. Within this DATA step, use a series of
Use a DATA step to create a permanent working SAS data set of "nhanes1718_sub" called "nhanes". Within this DATA step, use a series of IF-THEN-ELSE-IF statements (IF-THEN logic) to create the following new variables: 1. Recode all invalid values (ie., 77, 99) to numeric ". " missing for the variables DMDBORN4, and DMDMARTL. 2. Create a new categorical variable called "age_cat" for age (RIDAGEYR) with the following 5 categories: 1 = 0-19, 2 = 20-39, 3 = 40-59, 4 = 60-79, 5=80+. This new variable should be of the numeric type. (6 pts)
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 StartedRecommended Textbook for
Bank Management and Financial Services
Authors: Peter Rose, Sylvia Hudgins
9th edition
78034671, 978-0078034671
Students also viewed these Finance questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App