|Date: ||Mon, 30 Oct 2006 13:56:51 -0800|
|Reply-To: ||peter link <firstname.lastname@example.org>|
|Sender: ||"SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>|
|From: ||peter link <email@example.com>|
|Subject: ||Re: bar graph with no raw data|
|Content-Type: ||text/plain; charset="ISO-8859-15"|
Hi Marta -
Thanks for the response. I am trying to figure out how this code works. I
am unfamiliar with the computed quantity K. What is its meaning (if there
I also realize there are some problems associated with doing something like
this. However, I would like to make a bar braph obtained from the 'Expected
Marginal Means' in the GLM Univariate procedure. I didn't see another way
of doing this. I would be open to other ideas of how to approach this
problem, keeping in mind I'm running v11.5.
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of
Sent: Monday, October 30, 2006 12:28 PM
Subject: Re: bar graph with no raw data
You can adapt Valentim Alferes' code to get t-tests from summary data
to generate a dataset with the same means & SD ans your summary data,
and then use an IGRAPH:
** METHOD 2: Reproducing the SPSS T Test standard output from
** summary statistics in published articles.
* I have adapted it a bit to suit your needs *.
* Enter, row by row, N, Mean, and SD for Groups 1 and 2.
DATA LIST LIST /N(F8.0) M(F8.2) SD(F8.2) group(A8).
17 7.46 1.98 group1
15 5.34 2.14 group2
LOOP ID=1 TO N.
- XSAVE OUTFILE=XOUT1.
IF (ID=1) DV=M+K.
IF ID=2) DV=M-K.
* The graph you need *.
IGRAPH /VIEWNAME='Grafico de barras'
/X1 = VAR(group) TYPE = CATEGORICAL
/Y = VAR(DV) TYPE = SCALE
/COORDINATE = VERTICAL
/CATORDER VAR(group) (ASCENDING VALUES OMITEMPTY)
/BAR(MEAN) KEY=ON SHAPE = RECTANGLE BASELINE = AUTO
/ERRORBAR SD(1.0) DIRECTION = UP CAPWIDTH (45) CAPSTYLE = T.
PL> I would like to make a bar graph (with error bars). I have the mean,
PL> standard deviation, and N for each of the 2 groups, but no raw data.
PD: there are a lot of arguments against the use of such graphs to
sumarize continuous data, but you were not asking for them, but for
the graph only...