BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
saza
Quartz | Level 8

Was given a dataset called "cancer" and told to make a SLR model formula and define the variables. I attached the dataset and used the following code, however, my professor said that my Bo was supposed to be 11 times greater.

My Code:

proc contents data=cancer.cancer;run;

proc reg data= cancer.cancer;
model exposure= mortality/ clm cli;
ID mortality;
run;

My answer was Y=-10.008 +0.093x where Bo=-10.008 and B1=0.0364

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

Show us the output produced by PROC REG


Also

 

Shouldn't your PROC REG have 

 

model mortality = exposure/ clm cli;

where exposure predicts mortality (instead of the way you wrote it, which mortality predicts exposure)?

--
Paige Miller

View solution in original post

1 REPLY 1
PaigeMiller
Diamond | Level 26

Show us the output produced by PROC REG


Also

 

Shouldn't your PROC REG have 

 

model mortality = exposure/ clm cli;

where exposure predicts mortality (instead of the way you wrote it, which mortality predicts exposure)?

--
Paige Miller

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 755 views
  • 1 like
  • 2 in conversation