Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Level 1 1. Subsetting Observations and Variables Using the WHERE and KEEP Statements a. Retrieve and submit the starter program p105e01. What is the variable
Level 1 1. Subsetting Observations and Variables Using the WHERE and KEEP Statements a. Retrieve and submit the starter program p105e01. What is the variable name that contains gender values? What are the two possible gender values? b. Add a DATA step before the PROC PRINT step to read the data set orion . customer dim to create a new data set called Work . youngadult. c. Modify the PROC PRINT step to refer to the new data set. d. Submit the program and confirm that Work . youngadult was created with 77 observations and 11 variables. e. Add a WHERE statement to the DATA step to subset for female customers. f. Submit the program and confirm that Work . youngadult was created with 30 observations and 11 variables. g. Modify the WHERE statement to subset for female customers whose Customer Age is between 18 and 36. h. Submit the program and confirm that Work . youngadult was created with 15 observations and 11 variables. i. Modify the WHERE statement to subset for female 18- to 36-year-old customers who have the word Gold in their Customer_Group j. Submit the program and confirm that Work . youngadult was created with 5 observations and 11 variables. k. Modify the DATA step so that Work . youngadult contains only Customer Name, Customer Age, Customer BirthDate, Customer Gender, and Customer Group. 1. Submit the program and confirm that Work . youngadult was created with 5 observations and 5 variables
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