08-12-2016 10:35 PM
How can I get three-dimensional surface plots of quadratic regression model in SAS?
model yield = t pr t2 pr2 tp;
where t= temperature ( values scaled to -1,0 and 1)
pr= pressure ( values scaled to -1,0 and 1)
08-15-2016 10:34 AM
As PGStats said, look at the doc for PROC RSREG. The Getting Started example looks similar to what you need.
This (untested) code might point you in the right direction:
proc rsreg data=Have plots(unpack)=surface(3d);
model yield = temperature pressure;
Notice that the procedure automatically fits a quadratic model, so you do not need to specify the quadratic terms for temperature^2, pressure^2 or temperature*pressure.