BookmarkSubscribeRSS Feed
Chrisng2603
Calcite | Level 5

Hi guys, I'm working on a simple lack-of-fit problem and I need an Anova table for some essential quantities like MSE and SSE, here is my code

 

data Question4; /* Question 4 lack-of-fit */
input TP YP; /* Variables: TP = Temperature(X), YP = Yield of process(Y) */
cards;
50 122
50 118
55 128
55 126
55 125
60 136
60 140
65 142
65 145
70 161
70 165
75 174
run;

proc reg;
model YP = TP / lackfit;
run;

 

The problem is the code was giving me an empty Anova table with no values of MSE or SSE available, can anyone please help me out with this problem? I also try to input the same data into R to see whether the problem is the same, but R works out really well. However, I was specifically asked to use SAS to solve this problem. Thank you

2 REPLIES 2
Reeza
Super User

Try PROC ANOVA

 

Proc ANOVA data = Question4 ;

Class YP;

Model YP = TP ;

Run;

@Chrisng2603 wrote:

Hi guys, I'm working on a simple lack-of-fit problem and I need an Anova table for some essential quantities like MSE and SSE, here is my code

 

data Question4; /* Question 4 lack-of-fit */
input TP YP; /* Variables: TP = Temperature(X), YP = Yield of process(Y) */
cards;
50 122
50 118
55 128
55 126
55 125
60 136
60 140
65 142
65 145
70 161
70 165
75 174
run;

proc reg;
model YP = TP / lackfit;
run;

 

The problem is the code was giving me an empty Anova table with no values of MSE or SSE available, can anyone please help me out with this problem? I also try to input the same data into R to see whether the problem is the same, but R works out really well. However, I was specifically asked to use SAS to solve this problem. Thank you


 

PaigeMiller
Diamond | Level 26

The problem is the code was giving me an empty Anova table with no values of MSE or SSE available, can anyone please help me out with this problem?

 

I run the code and I get what seems to be valid answers. Please put a quit; statement after the run; statement and try it again.

--
Paige Miller

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

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
  • 2 replies
  • 1576 views
  • 2 likes
  • 3 in conversation