data d;
input Day Temp RH;
label Day = "Reaction Day (Hours)"
Temp = "Temperature (Degrees Centigrade)"
RH = "Percent of humidity";
datalines;
15 24 78
12 24 79
15 24 78
11 24 79
13 22 75
14 22 75
14 22 75
13 22 75
9 30 74
10 30 74
10 30 74
10 30 74
11 26 62
10 25 62
10 26 62
11 26 62
;
ods graphics on;
proc rsreg data=d plots=(ridge surface);
model Day=RH Temp / lackfit;
ridge max;
run;
Greeting All
I used the SAS code got blank for Lack of Fit, Is there something wrong with the data? If I got a lack of fit significant what is the other method to get a better model.
Thanks in advance
I think it's blank because the degrees of freedom attributable to lack-of-fit is zero.
According to the wikipedia article Lack-of-fit sum of squares the degrees of freedom for lack of fit is n-p, where
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.