Discussion:
SPSS v. 16 no linear regression equation in scatterplot
(too old to reply)
m***@gmail.com
2008-02-15 01:09:26 UTC
Permalink
I am in a class where some students have v.15 and some v.16. When
graphing scatterplots with linear regression, the linear regression
equation disappears in v. 16. Am I missing some obvious keystroke to
make it appear? It's key to the class.

Thanks!
Bruce Weaver
2008-02-15 21:35:51 UTC
Permalink
Post by m***@gmail.com
I am in a class where some students have v.15 and some v.16. When
graphing scatterplots with linear regression, the linear regression
equation disappears in v. 16. Am I missing some obvious keystroke to
make it appear? It's key to the class.
Thanks!
How are you generating the scatter-plot (i.e., legacy version,
interactive graphics version, or new GPL method)?

--
Bruce Weaver
***@lakeheadu.ca
www.angelfire.com/wv/bwhomedir
"When all else fails, RTFM."
m***@gmail.com
2008-02-15 22:48:58 UTC
Permalink
Post by Bruce Weaver
I am in a class where some students have v.15 and some v.16.  When
graphing scatterplots with linear regression, the linear regression
equation disappears in v. 16.  Am I missing some obvious keystroke to
make it appear?  It's key to the class.
Thanks!
How are you generating the scatter-plot (i.e., legacy version,
interactive graphics version, or new GPL method)?
--
Bruce Weaver
"When all else fails, RTFM."
We are using the interactive version to generate the scatterplot. We
tried another method but got the same result - no equation.
Ryan
2008-02-17 23:13:42 UTC
Permalink
Post by Bruce Weaver
I am in a class where some students have v.15 and some v.16.  When
graphing scatterplots with linear regression, the linear regression
equation disappears in v. 16.  Am I missing some obvious keystroke to
make it appear?  It's key to the class.
Thanks!
How are you generating the scatter-plot (i.e., legacy version,
interactive graphics version, or new GPL method)?
--
Bruce Weaver
"When all else fails, RTFM."
We are using the interactive version to generate the scatterplot.  We
tried another method but got the same result - no equation.- Hide quoted text -
- Show quoted text -
To obtain the regression linear equation, do the following:

1. Open the output file
2. Double click on the graph
3. Click on the add a reference line icon
4. Check attach label to line
5. Click apply and close

That should do it.

HTH

Ryan
Bruce Weaver
2008-02-18 00:36:32 UTC
Permalink
Post by Ryan
Post by m***@gmail.com
We are using the interactive version to generate the scatterplot. We
tried another method but got the same result - no equation.- Hide quoted text -
- Show quoted text -
1. Open the output file
2. Double click on the graph
3. Click on the add a reference line icon
4. Check attach label to line
5. Click apply and close
That should do it.
It would be a "fit line", I think, not a reference line. Also, this is
the procedure for adding a regression line to a scatter-plot that was
created via the GRAPH command (legacy graphs in the GUI). But as far as
I can tell, the OP is using the IGRAPH command (interactive graphics in
the GUI). It allows one to add a regression line via syntax, and also
displays the regression equation. The OP's problem, I think, is that
the *equation* is not appearing.

If the OP is still reading this, please post your IGRAPH syntax. It
might help someone figure out what the problem is. Of course, it might
just be another v16 bug. Have you installed the available patches?
--
Bruce Weaver
***@lakeheadu.ca
www.angelfire.com/wv/bwhomedir
"When all else fails, RTFM."
Ryan
2008-02-18 01:45:51 UTC
Permalink
Post by Ryan
We are using the interactive version to generate the scatterplot.  We
tried another method but got the same result - no equation.- Hide quoted text -
- Show quoted text -
1. Open the output file
2. Double click on the graph
3. Click on the add a reference line icon
4. Check attach label to line
5. Click apply and close
That should do it.
It would be a "fit line", I think, not a reference line.  Also, this is
the procedure for adding a regression line to a scatter-plot that was
created via the GRAPH command (legacy graphs in the GUI).  But as far as
I can tell, the OP is using the IGRAPH command (interactive graphics in
the GUI).  It allows one to add a regression line via syntax, and also
displays the regression equation.  The OP's problem, I think, is that
the *equation* is not appearing.
If the OP is still reading this, please post your IGRAPH syntax.  It
might help someone figure out what the problem is.  Of course, it might
just be another v16 bug. Have you installed the available patches?
--
Bruce Weaver
"When all else fails, RTFM."
Bruce is correct. I made an error. The reference line to which I was
referring is called the "reference line from the equation," which is
not the same as the "fit line." I'm sorry for the error.

----------

In the event the OP does not return, it's worth noting that I am
experiencing the same difficulty the OP reported. I obtained the
regression equation using the following syntax from spss 15:

IGRAPH /VIEWNAME='Scatterplot' /X1 = VAR(VAR00001) TYPE = SCALE /Y =
VAR(VAR00002) TYPE = SCALE /COORDINATE = VERTICAL /FITLINE METHOD =
REGRESSION LINEAR LINE = TOTAL SPIKE=OFF /X1LENGTH=3.0 /YLENGTH=3.0
/X2LENGTH=3.0 /CHARTLOOK='NONE' /SCATTER COINCIDENT = NONE.
EXE.

but the equation does not appear next to the graph when you run the
same syntax in version 16.

Even if the OP does not return, I would be very interested in hearing
if there is a solution.

Ryan
Bruce Weaver
2008-02-18 18:58:47 UTC
Permalink
Post by Ryan
In the event the OP does not return, it's worth noting that I am
experiencing the same difficulty the OP reported. I obtained the
IGRAPH /VIEWNAME='Scatterplot' /X1 = VAR(VAR00001) TYPE = SCALE /Y =
VAR(VAR00002) TYPE = SCALE /COORDINATE = VERTICAL /FITLINE METHOD =
REGRESSION LINEAR LINE = TOTAL SPIKE=OFF /X1LENGTH=3.0 /YLENGTH=3.0
/X2LENGTH=3.0 /CHARTLOOK='NONE' /SCATTER COINCIDENT = NONE.
EXE.
but the equation does not appear next to the graph when you run the
same syntax in version 16.
Even if the OP does not return, I would be very interested in hearing
if there is a solution.
Ryan
I'm now back on a PC with SPSS v16, and can confirm that I too am not
seeing the regression equation in the scatter-plot produced by the
following syntax. Nor can I find any obvious method of making it
appear via the Chart Editor.


GET
FILE='C:\Program Files\SPSS\Samples\1991 U.S. General Social
Survey.sav'.

IGRAPH
/VIEWNAME='Scatterplot'
/X1=VAR(speduc) TYPE=SCALE
/Y=VAR(educ) TYPE=SCALE
/COORDINATE=VERTICAL
/FITLINE METHOD=REGRESSION LINEAR LINE=TOTAL SPIKE=OFF
/YLENGTH=5.2
/X1LENGTH=6.5
/CHARTLOOK='NONE'
/SCATTER COINCIDENT=NONE.

--
Bruce Weaver
***@lakeheadu.ca
www.angelfire.com/wv/bwhomedir
"When all else fails, RTFM."
Ryan
2008-02-20 14:20:19 UTC
Permalink
Post by Bruce Weaver
Post by Ryan
In the event the OP does not return, it's worth noting that I am
experiencing the same difficulty the OP reported. I obtained the
IGRAPH /VIEWNAME='Scatterplot' /X1 = VAR(VAR00001) TYPE = SCALE /Y =
  VAR(VAR00002) TYPE = SCALE /COORDINATE = VERTICAL  /FITLINE METHOD =
  REGRESSION LINEAR LINE = TOTAL SPIKE=OFF /X1LENGTH=3.0 /YLENGTH=3.0
 /X2LENGTH=3.0 /CHARTLOOK='NONE' /SCATTER COINCIDENT = NONE.
EXE.
but the equation does not appear next to the graph when you run the
same syntax in version 16.
Even if the OP does not return, I would be very interested in hearing
if there is a solution.
Ryan
I'm now back on a PC with SPSS v16, and can confirm that I too am not
seeing the regression equation in the scatter-plot produced by the
following syntax.  Nor can I find any obvious method of making it
appear via the Chart Editor.
GET
  FILE='C:\Program Files\SPSS\Samples\1991 U.S. General Social
Survey.sav'.
IGRAPH
  /VIEWNAME='Scatterplot'
  /X1=VAR(speduc) TYPE=SCALE
  /Y=VAR(educ) TYPE=SCALE
  /COORDINATE=VERTICAL
  /FITLINE METHOD=REGRESSION LINEAR LINE=TOTAL SPIKE=OFF
  /YLENGTH=5.2
  /X1LENGTH=6.5
  /CHARTLOOK='NONE'
  /SCATTER COINCIDENT=NONE.
--
Bruce Weaver
"When all else fails, RTFM."- Hide quoted text -
- Show quoted text -
Bruce, I think the answer is that this feature is no longer available.
The good news is that you could change the equation of the reference
line to be the same as the equation for the fit line, and the equation
will appear next to the graph. -Ryan
m***@gmail.com
2008-02-28 12:46:49 UTC
Permalink
Thank you all for trying to help us find the equation. We have class
again tonight and I will continue to battle the problem. I have v.15
at home and only have access to v.16 on the mobile lab carts. I will
try out some suggestions and add a little improv and see what I can
get.

Thanks! Marisa
m***@gmail.com
2008-02-29 00:34:43 UTC
Permalink
It looks like we cannot make it work. The equation provided an easy
way for teaching stats 1 students how to understand regression and a
scatterplot prior to reading the coefficients table.

Thanks again, Marisa

Loading...