SAS Sample Code
proc format;
value a -1 = 8 0 = 9 1 = 10;
value l -1 = 250 0 = 300 1 = 350;
value o -1 = 40 0 = 45 1 = 50;
run;
data yarn;
input Fail Amplitude Length Load @@;
format amplitude a. length l. load o.;
label fail = 'Time in Cycles until Failure';
datalines;
674 -1 -1 -1 370 -1 -1 0 292 -1 -1 1 338 0 -1 -1
266 0 -1 0 210 0 -1 1 170 1 -1 -1 118 1 -1 0
90 1 -1 1 1414 -1 0 -1 1198 -1 0 0 634 -1 0 1
1022 0 0 -1 620 0 0 0 438 0 0 1 442 1 0 -1
332 1 0 0 220 1 0 1 3636 -1 1 -1 3184 -1 1 0
2000 -1 1 1 1568 0 1 -1 1070 0 1 0 566 0 1 1
1140 1 1 -1 884 1 1 0 360 1 1 1
;
run;
ods html style=journal2;
ods graphics on;
proc transreg data=yarn;
model BoxCox(fail / convenient lambda=-2 to 2 by 0.05) =
qpoint(length amplitude load);
run;
ods html close;
Statistics and Operations Research Home Page