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