Date: Sun, 6 Feb 2005 15:56:45 -0300
Reply-To: Hector Maletta <hmaletta@fibertel.com.ar>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Hector Maletta <hmaletta@fibertel.com.ar>
Subject: Re: Simple line graph
In-Reply-To: <8AE883D86DBAAF4E9924E984A06927F20ADB6D@mcintire6.comm.virginia.edu>
Content-Type: text/plain; charset="us-ascii"
Tony,
Produce the scatterplot. Then doubleclick on it to edit the graph. In the
editing menu go to Design - Options, then select adjusting a line. You have
a choice of shapes for the line (linear, quadratic, etc).
Regarding the dummy, the regression command does not produce separate lines
in the same plot as far as I know. But you can produce it with the GRAPH
command specifying:
GRAPH
/SCATTERPLOT(BIVAR)=var1 WITH var2 BY dummyvar.
The chart will show points with different colours according to the dummy's
value. Adjusting line will produce the two lines you want.
Hector
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]
> On Behalf Of Baglioni, Tony
> Sent: Sunday, February 06, 2005 3:27 PM
> To: SPSSX-L@LISTSERV.UGA.EDU
> Subject: Simple line graph
>
>
> All,
>
>
>
> I have what I suppose is a simple problem that I cannot
> figure out. First, I am generating an example of a regression
> between two interval level variables for a class. I want to
> obtain a scatter plot of the two variables with the
> regression line included and I cannot figure out how to do
> it. As a follow-up to this, I want to include a dummy
> variable and have a plot that shows the separate lines for
> each level of the dummy variable.
>
>
>
> Any help is appreciated.
>
>
>
> Tony
>
>
>
> A. J. Baglioni, jr.
>
> McIntire School of Commerce
>
> University of Virginia
>
> ajb2t@virginia.edu
>
> (434) 924-4961
>
>
>
|