Question: SAS coding. Using the data set below. Generate a frequency distribution of the new tertiles variable for age at visit 9. Give your new variable

data test; 2 set neslib.nghsdatal; run 1 5/91/ 6 Proc contents data-test; 7 run 9/92/ 10 Proc means data-test; 11 var activescorel activescore2 activescore activescore18; 12 run; 14 /37 15 proc means median min pi p25 pse pse p75 099 max maxdec-2; 16 var activescorel; 17 run 19 /"937 20 proc univariate data-nghslib.ngsdato: 21 var ActiveScore10; 22 histogram ActiveScorele; run; data test; 2 set neslib.nghsdatal; run 1 5/91/ 6 Proc contents data-test; 7 run 9/92/ 10 Proc means data-test; 11 var activescorel activescore2 activescore activescore18; 12 run; 14 /37 15 proc means median min pi p25 pse pse p75 099 max maxdec-2; 16 var activescorel; 17 run 19 /"937 20 proc univariate data-nghslib.ngsdato: 21 var ActiveScore10; 22 histogram ActiveScorele; run
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
