SPSS v16 add fit line

Moderators: statman, Analyst Techy, andris, Fierce, GerineL, Smash

emmaeskimo

SPSS v16 add fit line

Postby emmaeskimo » Sat Oct 11, 2008 6:42 pm

I'm having real trouble trying to fit a regression line into a summary point plot. The "add fit line" icon is always grey and even when i try and add a reference line from the regression equation, the line seems to be way out! Where am i going wrong?
Fierce
Moderator
Posts: 391
Joined: Sun Dec 28, 2008 5:55 pm
Location: Belo Horizonte, Brasil

Postby Fierce » Thu Jan 01, 2009 4:27 pm

There's nothing wrong. SPSS does that. But you can have the fit line. Use the syntax to generate your graph. The following line will add the fit line:

Code: Select all

  ELEMENT: line(position(smooth.linear(<FIRST VARIABLE>*<SUMARY STATISTIC USED (MEAN, MEDIAN...)>_<SECOND VARIABLE>)))

Who is online

Users browsing this forum: No registered users and 1 guest

cron