Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed 

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Bank Management and Financial Services

Authors: Peter Rose, Sylvia Hudgins

9th edition

78034671, 978-0078034671

More Books

Students also viewed these Finance questions

Question

Sketch and label the hierarchy of needs.

Answered: 1 week ago