Graphing Likert Questions

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

Graphing Likert Questions

zstatman
Can the GPL be modified (perhaps directly via the Graphic GUI in V17 but
can't figure it out) so that if one needs to plot (line chart) showing the
means of several (say 6) Likert questions "split" by a categorical variable,
e.g., gender, in one chart versus paneled? The Likert questions showing on
the x-axis, means on the y-axis clustered, for lack of a better word, by
gender (not paneled). If can, an example of the syntax would be helpful.

Tks,
WMB
Statistical Services

============
mailto: [hidden email]
http:\\home.earthlink.net\~info.statman
============

=====================
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
Will
Statistical Services
 
============
info.statman@earthlink.net
http://home.earthlink.net/~z_statman/
============
Reply | Threaded
Open this post in threaded view
|

Re: Graphing Likert Questions

ViAnn Beadle
Start with the multiple line gallery item. Make sure your six likert scales
are numeric and not categorical (if they are you can change their level of
measurement within chart builder by right clicking on them). Drag your six
variables to y to create an summary variable and an index variable. Turn on
the groups checkbox in the groups/point id panel and drop gender into the
target zone. The syntax will look something like this (using employee
data.sav) which plots beginning and end salary by gender:

GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=MEAN(salary) MEAN(salbegin)
gender MISSING=LISTWISE
    REPORTMISSING=NO
    TRANSFORM=VARSTOCASES(SUMMARY="#SUMMARY" INDEX="#INDEX")
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: SUMMARY=col(source(s), name("#SUMMARY"))
  DATA: INDEX=col(source(s), name("#INDEX"), unit.category())
  DATA: gender=col(source(s), name("gender"), unit.category())
  GUIDE: axis(dim(1), label("Gender"))
  GUIDE: axis(dim(2), label("Mean"))
  GUIDE: legend(aesthetic(aesthetic.color.interior), label("Gender"))
  SCALE: cat(dim(1), include("0", "1"))
  SCALE: linear(dim(2), include(0))
  SCALE: cat(aesthetic(aesthetic.color.interior), include("f", "m"))
  ELEMENT: line(position(INDEX*SUMMARY), color.interior(gender),
missing.wings())
END GPL.

If you want line styles to differ by pattern or width you'll have to change
the color.interior function and aesthetic to shape.

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Statmanz
Sent: Wednesday, December 10, 2008 7:08 AM
To: [hidden email]
Subject: Graphing Likert Questions

Can the GPL be modified (perhaps directly via the Graphic GUI in V17 but
can't figure it out) so that if one needs to plot (line chart) showing the
means of several (say 6) Likert questions "split" by a categorical variable,
e.g., gender, in one chart versus paneled? The Likert questions showing on
the x-axis, means on the y-axis clustered, for lack of a better word, by
gender (not paneled). If can, an example of the syntax would be helpful.

Tks,
WMB
Statistical Services

============
mailto: [hidden email]
http:\\home.earthlink.net\~info.statman
============

=====================
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
Reply | Threaded
Open this post in threaded view
|

Re: Graphing Likert Questions

zstatman
That's it

Thanks ViAnn

W

-----Original Message-----
From: ViAnn Beadle [mailto:[hidden email]]
Sent: Wednesday, December 10, 2008 9:31 AM
To: 'Statmanz'; [hidden email]
Subject: RE: Graphing Likert Questions

Start with the multiple line gallery item. Make sure your six likert scales
are numeric and not categorical (if they are you can change their level of
measurement within chart builder by right clicking on them). Drag your six
variables to y to create an summary variable and an index variable. Turn on
the groups checkbox in the groups/point id panel and drop gender into the
target zone. The syntax will look something like this (using employee
data.sav) which plots beginning and end salary by gender:

GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=MEAN(salary) MEAN(salbegin)
gender MISSING=LISTWISE
    REPORTMISSING=NO
    TRANSFORM=VARSTOCASES(SUMMARY="#SUMMARY" INDEX="#INDEX")
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: SUMMARY=col(source(s), name("#SUMMARY"))
  DATA: INDEX=col(source(s), name("#INDEX"), unit.category())
  DATA: gender=col(source(s), name("gender"), unit.category())
  GUIDE: axis(dim(1), label("Gender"))
  GUIDE: axis(dim(2), label("Mean"))
  GUIDE: legend(aesthetic(aesthetic.color.interior), label("Gender"))
  SCALE: cat(dim(1), include("0", "1"))
  SCALE: linear(dim(2), include(0))
  SCALE: cat(aesthetic(aesthetic.color.interior), include("f", "m"))
  ELEMENT: line(position(INDEX*SUMMARY), color.interior(gender),
missing.wings())
END GPL.

If you want line styles to differ by pattern or width you'll have to change
the color.interior function and aesthetic to shape.

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Statmanz
Sent: Wednesday, December 10, 2008 7:08 AM
To: [hidden email]
Subject: Graphing Likert Questions

Can the GPL be modified (perhaps directly via the Graphic GUI in V17 but
can't figure it out) so that if one needs to plot (line chart) showing the
means of several (say 6) Likert questions "split" by a categorical variable,
e.g., gender, in one chart versus paneled? The Likert questions showing on
the x-axis, means on the y-axis clustered, for lack of a better word, by
gender (not paneled). If can, an example of the syntax would be helpful.

Tks,
WMB
Statistical Services

============
mailto: [hidden email]
http:\\home.earthlink.net\~info.statman
============

=====================
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
Will
Statistical Services
 
============
info.statman@earthlink.net
http://home.earthlink.net/~z_statman/
============