Question: SAS CODE we have some data set named mortality - DO NOT NEED ANY DATA SET, DATA SETS ARE NAMED FOR FORMATTING PROBLEM make a
SAS CODE
we have some data set named mortality - DO NOT NEED ANY DATA SET, DATA SETS ARE NAMED FOR FORMATTING PROBLEM
- make a library, nh3, that points to the location of the mortality data set.
- Use a data step to make a temporary SAS data set, mortsub1 that contains only those observations on the nh3.mortality data set for which the variable eligstat is equal to 1.
- The data set work.mortsub1 should contain only the variables
SEQN and MORTSTAT. The variable mortstat should be labeled as "Mortality Status."
4. Use a proc contents step to examine the descriptor portion of work.mortsub1.
5. Use a proc print step to display the first 100 observations on the data set
Please write sas code answers. mortality is a random data set being used, but this can be solved using some other data set you have available, then I'll adjust to mortality.
having trouble creating temporary data set and using correct formatting
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
