Hello. I really need help with this task that I have been given for SAS studio. I only have the start of the code:
data Depression;
infile '/courses/ddb976e5ba27fe300/NHANES 2013_2014';
I would be eternally grateful if someone helped me. I have no idea what to do next for this code. I don't even understand what variables I need to use. I would appreciate any help at all that helps point me in the right direction! The prompt for my task is below:
Create a temporary data set called Depression that reads the dpq_h_errors SAS data set and changes all impossible values in the depression variables to missing. The dpq_h_errors data set is stored in the /courses/ddb976e5ba27fe300/NHANES 2013_2014 folder.
The possible values are listed for each variable at:
You're definitely off track here. The code that you have written so far would not locate an existing SAS data set. Here's a better start:
libname in '/courses/ddb976e5ba27fe300/NHANES 2013_2014';
proc contents data=in.dpq_h_errors;
run;
proc print data=in.dpq_h_errors (obs=10);
run;
That's the way to locate an existing data set, and to get an initial idea of what is in it.
If this program doesn't work, it's because the path to the folder that holds the data isn't quite right. You would need to find the proper folder in that case.
You're definitely off track here. The code that you have written so far would not locate an existing SAS data set. Here's a better start:
libname in '/courses/ddb976e5ba27fe300/NHANES 2013_2014';
proc contents data=in.dpq_h_errors;
run;
proc print data=in.dpq_h_errors (obs=10);
run;
That's the way to locate an existing data set, and to get an initial idea of what is in it.
If this program doesn't work, it's because the path to the folder that holds the data isn't quite right. You would need to find the proper folder in that case.
Thank you!!
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.