BookmarkSubscribeRSS Feed
MKing327
Calcite | Level 5

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?

4 REPLIES 4
PaigeMiller
Diamond | Level 26

Explain what you have tried and show us the results.

--
Paige Miller
MKing327
Calcite | Level 5

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?

MKing327_0-1668213148639.png

 

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.

PaigeMiller
Diamond | Level 26

SEX is a classification variable.

--
Paige Miller
ChrisHemedinger
Community Manager

There's a really good tutorial on the SAS Users YouTube channel about linear regression in SAS, using SAS Studio tasks..

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 751 views
  • 3 likes
  • 3 in conversation