LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2005)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 2 Sep 2005 17:12:56 +0200
Reply-To:     Marta García-Granero
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Marta García-Granero
Organization: Asesoría Bioestadística
Subject:      Re: Syntax for Errorbars in plot
In-Reply-To:  <>
Content-Type: text/plain; charset=ISO-8859-15

Hi Karl,

KK> I produce analysis and design of my data with the following syntax:

KK> GLM KK> sit1 sit2 sit3 sit4 sit5 sit6 sit7 sit8 sit9 sit10 sit11 sit12 sit13 sit14 KK> sit15 sit16 sit17 sit18 KK> /WSFACTOR = f_time 3 Repeated f_loc 3 Repeated f_int 2 Repeated KK> /METHOD = SSTYPE(3) KK> /PLOT = PROFILE( f_time f_loc f_int f_time*f_loc f_time*f_int f_loc*f_int KK> f_time*f_loc*f_int f_loc*f_time*f_int f_int*f_time*f_loc KK> f_int*f_loc*f_time KK> ) KK> .... some more commands .... KK> /CRITERIA = ALPHA(.05) KK> /WSDESIGN = f_time f_loc f_int f_time*f_loc f_time*f_int f_loc*f_int KK> f_time KK> *f_loc*f_int .

KK> But I don't get error bars in my plots. I am wondering what do I need to add KK> to the syntax to get that plotted. SPSS sbould have the data and therefore I KK> should only need to provide a commmand to make SPSS plot it for me.

You can't. You need to export the mean & standard error to a file and plot them:

DATA LIST LIST /Year(F5.0) Mean(F4.1) SE(F4.1). BEGIN DATA 1995 123 2.1 1996 134 2.2 1997 122 2.1 1998 156 2.4 END DATA.

COMPUTE upperval = mean+1.96*se . COMPUTE lowerval = mean-1.96*se . EXECUTE . GRAPH /HILO(SIMPLE)=VALUE( upperval lowerval mean ) BY year .

If you don't want CI but mean +/- SE, eliminate "1.96*" from both COMPUTE lines.

Happy week end (it's near quitting time here in Spain).


Back to: Top of message | Previous page | Main SPSSX-L page