boxplots

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

boxplots

Genevieve Odoom

Hi,

Does anyone know how to create box plots in SPSS that break up data by category and total?

 

For example, a graph showing 3 box plots for girls, boys and all (both boys and girls).

 

Genevieve Odoom

Policy & Program Analyst

Ontario Association of Non-Profit Homes and Services for Seniors (OANHSS)

7050 Weston Road, Suite 700

Woodbridge, Ontario L4L 8G7

T. 905.851.8821 ext. 241

F. 905 851.0744

www.twitter.com/oanhss

[hidden email]

 

 

OANHSS Upcoming Events

Human Resources Law – Year in Review – January 27, 2014

Legal and Ethical Issues in LTC Webinar Series - see website for dates and times

OANHSS Administrator Leadership Program (Spring) – March 23-28, 2014
2014 OANHSS Annual General Meeting & Convention - April 28-30, 2014

For registration details visit www.oanhss.org.

 

This electronic communication is from the Ontario Association of Non-Profit Homes and Services for Seniors. It is for the intended recipient only and may contain confidential and/or privileged information. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient, is prohibited. If you received this in error, please contact the sender and delete the material from your computer.

 

Reply | Threaded
Open this post in threaded view
|

Re: boxplots

Mike
See the Examine/Explore procedure.  I believe something
like the following would work:

EXAMINE VARIABLES=measure BY gender /
PLOT=BOXPLOT/
ID=idnum.

Where measure is variable used in the boxplot, gender
is a grouping variable which produces a boxplot for each
level and the total group. Idnum is a unique case identifier
that is useful in identifying outliers/extreme values.  Might
need a little tweaking.

-Mike Palij
New York University
[hidden email]


----- Original Message -----
From: Genevieve Odoom
To: [hidden email]
Sent: Monday, January 27, 2014 10:53 AM
Subject: boxplots


Hi,
Does anyone know how to create box plots in SPSS that break up data by
category and total?

For example, a graph showing 3 box plots for girls, boys and all (both
boys and girls).

Genevieve Odoom
Policy & Program Analyst
Ontario Association of Non-Profit Homes and Services for Seniors
(OANHSS)
7050 Weston Road, Suite 700
Woodbridge, Ontario L4L 8G7
T. 905.851.8821 ext. 241
F. 905 851.0744
www.twitter.com/oanhss
[hidden email]


OANHSS Upcoming Events
Human Resources Law - Year in Review - January 27, 2014
Legal and Ethical Issues in LTC Webinar Series - see website for dates
and times
OANHSS Administrator Leadership Program (Spring) - March 23-28, 2014
2014 OANHSS Annual General Meeting & Convention - April 28-30, 2014
For registration details visit www.oanhss.org.

This electronic communication is from the Ontario Association of
Non-Profit Homes and Services for Seniors. It is for the intended
recipient only and may contain confidential and/or privileged
information. Any review, retransmission, dissemination or other use of,
or taking of any action in reliance upon this information, by persons or
entities other than the intended recipient, is prohibited. If you
received this in error, please contact the sender and delete the
material from your computer.

=====================
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: boxplots

ViAnn Beadle
In reply to this post by Genevieve Odoom

If you use the chart builder to generate boxplots, add a “Total” constant to the algebra. Here’s a simple example assuming that y is the summary variable and x is the categorical variable:

 

GGRAPH

  /GRAPHDATASET NAME="graphdataset" VARIABLES=x y MISSING=LISTWISE REPORTMISSING=NO

  /GRAPHSPEC SOURCE=INLINE.

BEGIN GPL

  SOURCE: s=userSource(id("graphdataset"))

  DATA: x=col(source(s), name("x"), unit.category())

  DATA: y=col(source(s), name("y"))

  DATA: id=col(source(s), name("$CASENUM"), unit.category())

  GUIDE: axis(dim(1), label("x"))

  GUIDE: axis(dim(2), label("y"))

  SCALE: linear(dim(2), include(0))

  ELEMENT: schema(position(bin.quantile.letter((x*y)+("Total"*y))), label(id))

END GPL.

 

If you put the (“Total”*y) first, the total will be the first boxplot in the chart.

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Genevieve Odoom
Sent: Monday, January 27, 2014 8:54 AM
To: [hidden email]
Subject: boxplots

 

Hi,

Does anyone know how to create box plots in SPSS that break up data by category and total?

 

For example, a graph showing 3 box plots for girls, boys and all (both boys and girls).

 

Genevieve Odoom

Policy & Program Analyst

Ontario Association of Non-Profit Homes and Services for Seniors (OANHSS)

7050 Weston Road, Suite 700

Woodbridge, Ontario L4L 8G7

T. 905.851.8821 ext. 241

F. 905 851.0744

www.twitter.com/oanhss

[hidden email]

 

 

OANHSS Upcoming Events

Human Resources Law – Year in Review – January 27, 2014

Legal and Ethical Issues in LTC Webinar Series - see website for dates and times

OANHSS Administrator Leadership Program (Spring) – March 23-28, 2014
2014 OANHSS Annual General Meeting & Convention - April 28-30, 2014

For registration details visit www.oanhss.org.

 

This electronic communication is from the Ontario Association of Non-Profit Homes and Services for Seniors. It is for the intended recipient only and may contain confidential and/or privileged information. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient, is prohibited. If you received this in error, please contact the sender and delete the material from your computer.