Relative to these two questions: If I wanted to see if the Age and HR (Heart rate) of the person were related to each other using the "proc" method, how would I do so, using descriptive statistics? Also if the Age and HR had any relation, how would I check if the SBP and Chol have any impact on that relation if it does exist?
For this, PROC CORR is probably the easiest to understand. This will give the correlation between the two variables, which is a measure of how related they are. For example:
proc corr data=have;
var age hr;
run;
This will give you the correlation between Age and HR.
The second question is a bit trickier. If you "partial out" the effects of SBP and Chol you will get the relationship between Age and HR after removing any effects due to SBP and Chol. This would look like:
proc corr data=have;
var age hr;
partial SBP Chol;
run;
This removes the effects of BOTH of the variables. You could see how removing the effect of just one by specifying only that variable in the PARTIAL statement
SteveDenham
... View more