Coding Project (3 hours)
(Sample)
A client of yours sent you a data set that contains the customer information from a loyalty card program.
The data set contains tons of information that your client can explore.
However, the data set must be cleaned up before the analysis can be done.
Your boss is currently on vacation, and your client needs this done by tomorrow.
It is the perfect time to show your boss's boss you can totally step up and do the job.
Task 1
Run the code in the yellow box below to get the CUSTOMER data set on SAS Studio.
[Note: the code are fairly long. You must click the yellow box to "select all" text, and paste it on the Coding Area before you run it.]
(Sample)
A client of yours sent you a data set that contains the customer information from a loyalty card program.
The data set contains tons of information that your client can explore.
However, the data set must be cleaned up before the analysis can be done.
Your boss is currently on vacation, and your client needs this done by tomorrow.
It is the perfect time to show your boss's boss you can totally step up and do the job.
Task 1
Run the code in the yellow box below to get the CUSTOMER data set on SAS Studio.
[Note: the code are fairly long. You must click the yellow box to "select all" text, and paste it on the Coding Area before you run it.]
You can also download the code from the text file below:

coding_exercise_samples.txt |
Note: the data set above contains only 100 observations.
The complete data set (2000 observations) is only available to our members.
Sign up now.
The complete data set (2000 observations) is only available to our members.
Sign up now.
The CUSTOMER data set contains the following 13 variables:
Check the followings after you create the CUSTOMER data set on SAS Studio:
You do not need to submit the answer for Task 1. This is just to ensure you have the complete data set for Task 2.
- CUSTID: Customer ID
- FIRST: First Name
- LAST: Last Name
- GENDER: Gender
- DOB: Date of Birth
- POSTAL: Postal Code (Canada)
- EDU: Level of Education
- OCCUP: Occupation
- INCOME: Income
- STATUS: Marital Status
- NUMKIDS: Number of Kids
- SPEND: Spending in the year past
- DOS: Date of Study
Check the followings after you create the CUSTOMER data set on SAS Studio:
- There are 2000 observations in the data set
- All 13 variables are captured in the CUSTOMER data set
You do not need to submit the answer for Task 1. This is just to ensure you have the complete data set for Task 2.