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..
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Ready to level-up your skills? Choose your own adventure.