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..

SAS Hackathon registration is open! Build your skills. Make connections. Enjoy creative freedom. Maybe change the world.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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