display slope-intercept values on graph

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

display slope-intercept values on graph

xenia
Hello all,
sometime ago I had enquired regarding capturing output from a linear regression e.g. R and R2, to an outfile and one of the solutions was using OMS (by J.Peck).
I am wondering whether I can make the slope and the intercept of the regression appear on the graph of the dependent by the independent variable (it is a simple regression, one dependent and one independent variable, both continuous). For example I have:


REGRESSION
 /MISSING LISTWISE
 /CRITERIA=PIN(.05) POUT(.10)
 /NOORIGIN
 /DEPENDENT FEvalues
 /METHOD=ENTER days.

IGRAPH
  /VIEWNAME='Scatterplot'
  /X1=VAR(days) TYPE=SCALE
  /Y=VAR(FEvalues) TYPE=SCALE
  /COORDINATE=VERTICAL
  /FITLINE METHOD=REGRESSION LINEAR LINE=TOTAL SPIKE=OFF
  /SCATTER COINCIDENT=NONE
  /POINTLABEL= VAR(sampleno) all.

So, I get the regression results and then I want a plot of FEvalues by days, with a fitted line (linear), but would also like to show the slope and the intercept values of the regression line on the plot.

Thank you