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

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 visit 9. What would be the code to do this in SAS?
 SAS Coding Question 1. Create categories (tertiles) for age at visit

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!