Best fitting plane in 3-D scatter-plot

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Best fitting plane in 3-D scatter-plot

Bruce Weaver
Administrator
[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
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
Reply | Threaded
Open this post in threaded view
|

Re: Best fitting plane in 3-D scatter-plot

Bruce Weaver
Administrator
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.

--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).