scatter plot with two IV and one DV

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

scatter plot with two IV and one DV

Moshe Marko
Hello,

I am trying to create a scatter plot with two IVs and one DV on SPSS or
excel. Playing with it on SPSS, so far I got this

* Chart Builder.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=PercentileISO MODISO
MISSING=LISTWISE REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: PercentileISO=col(source(s), name("PercentileISO"))
  DATA: MODISO=col(source(s), name("MODISO"))
  DATA: SPPBISO=col(source(s), name("SPPBISO"))
  GUIDE: axis(dim(1), label("PercentileISO"))
  GUIDE: axis(dim(2), label("MODISO" or "SPPBISO"))
 SCALE: linear( dim( 1 ), min( 2 ), max( 7 ) )
SCALE: linear( dim( 2 ), min( -5 ), max( 25 ) )
ELEMENT: point(position(PercentileISO*MODISO or PercentileISO*SPPBISO))
END GPL.


The error message I get is this:

GPL error: labelLiteral("MODISO"or"SPPBISO")

Not a quoted string: $$5or$$6

GPL:
  SOURCE: s=userSource(id("graphdataset"))
  DATA: PercentileISO=col(source(s), name("PercentileISO"))
  DATA: MODISO=col(source(s), name("MODISO"))
  DATA: SPPBISO=col(source(s), name("SPPBISO"))
  GUIDE: axis(dim(1), label("PercentileISO"))
  GUIDE: axis(dim(2), label("MODISO" or "SPPBISO"))
 SCALE: linear( dim( 1 ), min( 2 ), max( 7 ) )
SCALE: linear( dim( 2 ), min( -5 ), max( 25 ) )
ELEMENT: point(position(PercentileISO*MODISO or PercentileISO*SPPBISO))


Any ideas?

Thanks

Moshe

Moshe Marko, PT, DPT, MHS, OCS, CSCS
Assistant Professor
Department of Physical Therapy Education
College of Health Professions
SUNY Upstate Medical University
Room 2232  Silverman Hall
750 Adams Street
Syracuse, NY 13210-1834
315 464 6577
FAX 315 464 6887
[hidden email]

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: scatter plot with two IV and one DV

ViAnn Beadle
"or" is not a keyword in GPL and you use it twice.

1. You must put the entire quoted string "MODISO OR SPPBISO"  into the label
function on the GUIDE statement.
2. Use two ELEMENT statements. Specify MODISO on the 1st and SPPBISO on the
second.



-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Moshe Marko
Sent: Tuesday, August 31, 2010 1:06 PM
To: [hidden email]
Subject: scatter plot with two IV and one DV

Hello,

I am trying to create a scatter plot with two IVs and one DV on SPSS or
excel. Playing with it on SPSS, so far I got this

* Chart Builder.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=PercentileISO MODISO
MISSING=LISTWISE REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: PercentileISO=col(source(s), name("PercentileISO"))
  DATA: MODISO=col(source(s), name("MODISO"))
  DATA: SPPBISO=col(source(s), name("SPPBISO"))
  GUIDE: axis(dim(1), label("PercentileISO"))
  GUIDE: axis(dim(2), label("MODISO" or "SPPBISO"))
 SCALE: linear( dim( 1 ), min( 2 ), max( 7 ) )
SCALE: linear( dim( 2 ), min( -5 ), max( 25 ) )
ELEMENT: point(position(PercentileISO*MODISO or PercentileISO*SPPBISO)) END
GPL.


The error message I get is this:

GPL error: labelLiteral("MODISO"or"SPPBISO")

Not a quoted string: $$5or$$6

GPL:
  SOURCE: s=userSource(id("graphdataset"))
  DATA: PercentileISO=col(source(s), name("PercentileISO"))
  DATA: MODISO=col(source(s), name("MODISO"))
  DATA: SPPBISO=col(source(s), name("SPPBISO"))
  GUIDE: axis(dim(1), label("PercentileISO"))
  GUIDE: axis(dim(2), label("MODISO" or "SPPBISO"))
 SCALE: linear( dim( 1 ), min( 2 ), max( 7 ) )
SCALE: linear( dim( 2 ), min( -5 ), max( 25 ) )
ELEMENT: point(position(PercentileISO*MODISO or PercentileISO*SPPBISO))


Any ideas?

Thanks

Moshe

Moshe Marko, PT, DPT, MHS, OCS, CSCS
Assistant Professor
Department of Physical Therapy Education College of Health Professions SUNY
Upstate Medical University Room 2232  Silverman Hall
750 Adams Street
Syracuse, NY 13210-1834
315 464 6577
FAX 315 464 6887
[hidden email]

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command SIGNOFF SPSSX-L For a list of
commands to manage subscriptions, send the command INFO REFCARD

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD