I am interested in fitting loess lines to a scatterplot in SPSS. I am able to get a fit line for the mean of my Y variable, but I would also like fit lines 1 SD above and below the mean of Y (see attached for an example). Is this possible in SPSS?
Hi Melissa ! You may simply follow the R code given below and get your desired plot. For this you only have to install new ver of R and ggplot2 package only.
x= runif(100)
y=runif(100)
#The X, Y value you may import from .csv file (YOUR DATA)
Hi Melissa ! You may simply follow the R code given below and get your desired plot. For this you only have to install new ver of R and ggplot2 package only.
x= runif(100)
y=runif(100)
#The X, Y value you may import from .csv file (YOUR DATA)
In SPSS, once you've created the scatterplot, double-click on it. That the Chart Editor window. From the menu bar, select: Options/Reference Line from equation (there is also an icon that does the same). Once selected, a new window shows that allows you to specify any linear "reference line" via the "Custom Equation" box. Three times through, once for each line will do the job.