The data is defined directly in the script via the DATA step 'd' and the DATALINES statement. It contains 3 numerical variables: Time, Temp, and MBT.
1 Code Block
DATA STEP Data
Explanation : Creation of the dataset 'd' containing the experimental results. The use of ' @@' in the INPUT statement allows reading multiple observations on the same data line.
INPUT Time Temp MBT @code_sas_json/8_SAS_Intro_ReadFile_MultiCol_@@.json;
3
label Time = "Reaction Time (Hours)"
4
Temp = "Temperature (Degrees Centigrade)"
5
MBT = "Percent Yield Mercaptobenzothiazole";
6
DATALINES;
7
4.025083.820.025081.712.025082.4
8
12.025082.912.022084.712.028057.9
9
12.025081.26.322981.36.327183.1
10
17.722985.317.727172.74.025082.0
11
;
2 Code Block
PROC ORTHOREG
Explanation : Fitting the regression model with PROC ORTHOREG. The EFFECTPLOT FIT statement generates a plot of the model fit with 'Time' on the X-axis, separated by 'Temp'.
Explanation : Second identical fit, but using EFFECTPLOT SLICEFIT to display fit curves for specific values (slices) of the 'Temp' variable (229, 250, 271, 280).
Explanation : Third adjustment using default EFFECTPLOT but with the OBS(JITTER) option to display actual observations overlaid with slight random noise (jitter) to avoid visual overlap.
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
Copyright Info : Frankel (1961) ... From Myers, Response Surface Methodology 1976.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.