The instructor would like a linear regression using the SASHELP.Heart data set. The dependent variable should be weight and cholesterol, systolic, and sex as predictor variables. How can this be done to provide diagnostic plots and to answer the question, approximately how much lighter is a female than a male with the same systolic blood pressure and cholesterol?
Explain what you have tried and show us the results.
Using the data set SASHELP.Heart, run a regression with Weight as the dependent variable and
Cholesterol, Systolic, and Sex as the predictor variables. Include a panel of diagnostic plots.
Because this data set is over 5,000 observations, be sure to increase the default value of 5,000
for the number of data points to plot. Approximately how much lighter is a female than a male
with same systolic blood pressure and cholesterol?
So I am not sure how to get sex to be set as a predictor variable to be able to get the graphs needed and to answer the question at the end above.
SEX is a classification variable.
There's a really good tutorial on the SAS Users YouTube channel about linear regression in SAS, using SAS Studio tasks..
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Ready to level-up your skills? Choose your own adventure.