Question: SAS Coding Question 1. Create categories (tertiles) for age at visit 9 and generate a frequency distribution of the new tertiles variable for age at
data test; 2 set nghslib.nghsdatal; 3 run; 5/917 6 Proc contents data=test; 7 run; 9/92/ 10 Proc means data-test; 11 var activescorel activescore2 activescore activescore18; run; 1 14/"q37 15 proc means median min pi p25 pse pse p75 099 max maxdec 2; 16 var activescorel; 17 run; 15 19 / 937 20 proc univariate data-nghslibingsdatol; 21 var ActiveScore10; 22 histogram ActiveScorele; run; data test; 2 set nghslib.nghsdatal; 3 run; 5/917 6 Proc contents data=test; 7 run; 9/92/ 10 Proc means data-test; 11 var activescorel activescore2 activescore activescore18; run; 1 14/"q37 15 proc means median min pi p25 pse pse p75 099 max maxdec 2; 16 var activescorel; 17 run; 15 19 / 937 20 proc univariate data-nghslibingsdatol; 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
