Question
Data cleaning To have meaningful test results, we need to clean the datasetnhanes.nh1516 first. In the dataset, we saw the records with refused to answer
Data cleaning
To have meaningful test results, we need to clean the datasetnhanes.nh1516 first. In the dataset, we saw the records with "refused to answer" or "do not know" or else.
Usually we need to recode those records as missing because in the dataset they are treated as a category, but they are no real meaning.
To do that, runprocfreq to check which variables have those codes and need to recode .
For example ,
/***DUQ200: Ever used marijuana or hashish***/
procfreqdata = nhanes.nh1516;table DUQ200;run;
You can see three people answered 'refused' (7) and three people answered 'Do not know ' (9 ) once you check the dictionary from the CDC website. We will recode those people as missing.
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