Bruce Weaver wrote:
[Also posted to comp.soft-sys.stat.spss]
Hello group. I am quite certain that in a previous version of SPSS (somewhere in the v13-15 range, I would guess), I was able to add a best-fitting plane to a 3-D scatter-plot in the chart editor. In v16.0.2, I can't find a way to do this. Does anyone know if it can still be done? Thanks.
Bruce
I found the answer to my own question. In the "interactive graphics" version of the 3D scatter-plot, adding a regression fit "line" actually adds the best fitting plane. The syntax looks something like this:
IGRAPH
/VIEWNAME='Scatterplot'
/X1=VAR(X1) TYPE=SCALE
/Y=VAR(Y) TYPE=SCALE
/X2=VAR(X2) TYPE=SCALE
/COORDINATE=THREE
/SPIKE FLOOR
/FORMAT SPIKE COLOR=OFF STYLE=OFF
/FITLINE METHOD=REGRESSION LINEAR LINE=TOTAL SPIKE=OFF
/YLENGTH=5.2
/X1LENGTH=6.5
/CHARTLOOK='NONE'
/SCATTER COINCIDENT=NONE.