Date: Fri, 23 Jul 2010 08:28:18 -0400
Reply-To: Art@DrKendall.org
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Art Kendall <Art@DrKendall.org>
Organization: Social Research Consultants
Subject: Re: Fw: R-matrix
In-Reply-To: <667007.22320.qm@web31005.mail.mud.yahoo.com>
Content-type: text/html; charset=ISO-8859-1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On the simplest scatterplots, cases would be exactly at the same
point. See "jitter" in <help>. Jittering moves points out
from behind one another.<br>
<br>
The syntax below simulates throwing 2 dice. (values are 1 to 6
rather than 1 to 5.)<br>
A crosstab is analogous to a scatter plot except that the points are
counts rather than simple elements.<br>
Then there are 3 scatterplots of the same data with no jitter, and
with 2 kinds of collision modifiers.<br>
<br>
<tt>* throw 2 dice.<br>
SET SEED=20100723.<br>
NEW FILE.<br>
INPUT PROGRAM .<br>
LOOP id=1 to 155.<br>
COMPUTE die1=RND(RV.UNIFORM(.5,6.5)).<br>
COMPUTE die2=RND(RV.UNIFORM(.5,6.5)).<br>
END CASE.<br>
END LOOP.<br>
END FILE.<br>
END INPUT PROGRAM.<br>
FORMATS DIE1 DIE2 (F1).<br>
VARIABLE LEVEL die1 die2 (nominal).<br>
CROSSTAB TABLES= DIE1 BY DIE2 /CELLS=count.<br>
CROSSTAB TABLES= DIE1 BY DIE2 /CELLS=ALL.<br>
* scatterplot without jitter.<br>
GGRAPH<br>
/GRAPHDATASET NAME="graphdataset"<br>
VARIABLES=die2[LEVEL=ratio] die1[LEVEL=ratio]<br>
MISSING=LISTWISE REPORTMISSING=NO<br>
/GRAPHSPEC SOURCE=VIZTEMPLATE(NAME="Scatterplot"[LOCATION=LOCAL]<br>
MAPPING( "y"="die2"[DATASET="graphdataset"]
"x"="die1"[DATASET="graphdataset"]))<br>
VIZSTYLESHEET="Traditional"[LOCATION=LOCAL]<br>
LABEL="Scatterplot: die1-die2"<br>
DEFAULTTEMPLATE=NO.<br>
*scatterplot with dodge.symmetric jitter.<br>
* Chart Builder.<br>
GGRAPH<br>
/GRAPHDATASET NAME="graphdataset" VARIABLES=die1 die2
MISSING=LISTWISE REPORTMISSING=NO<br>
/GRAPHSPEC SOURCE=INLINE.<br>
BEGIN GPL<br>
SOURCE: s=userSource(id("graphdataset"))<br>
DATA: die1=col(source(s), name("die1"), unit.category())<br>
DATA: die2=col(source(s), name("die2"), unit.category())<br>
GUIDE: axis(dim(1), label("die1"))<br>
GUIDE: axis(dim(2), label("die2"))<br>
ELEMENT: point.dodge.symmetric(position(die1*die2))<br>
END GPL.<br>
*scatterplot with jitter.normal.<br>
* Chart Builder.<br>
GGRAPH<br>
/GRAPHDATASET NAME="graphdataset" VARIABLES=die1 die2
MISSING=LISTWISE REPORTMISSING=NO<br>
/GRAPHSPEC SOURCE=INLINE.<br>
BEGIN GPL<br>
SOURCE: s=userSource(id("graphdataset"))<br>
DATA: die1=col(source(s), name("die1"), unit.category())<br>
DATA: die2=col(source(s), name("die2"), unit.category())<br>
GUIDE: axis(dim(1), label("die1"))<br>
GUIDE: axis(dim(2), label("die2"))<br>
ELEMENT: point.jitter.normal(position(die1*die2))<br>
END GPL.<br>
</tt><br>
Art Kendall<br>
Social Research Consultants<br>
<br>
<br>
On 7/22/2010 11:49 PM, jacqueline london wrote:
<blockquote cite="mid:667007.22320.qm@web31005.mail.mud.yahoo.com"
type="cite">
<style type="text/css"><!-- DIV {margin:0px;} --></style>
<div style="font-family: times new roman,new york,times,serif;
font-size: 12pt;">The range of values is 1 to 5 : <span
style="font-style: italic;">strongly agree, agree, neutral,
disagree and strongly disagree.</span> Yes I believe from 155
there would be a significant number of cases that would have a
particular pair of values. Yes there were some points with no
cases, but what puzzled me is that all had single plots, how
come not even 1 had 2 plots. But I think I understand what you
are saying with only 25 possible locations and the 2 items that
I chose it is quite possible. I guess the simple scatterplot is
just to give you an idea. I will try other pairs and see what
happens. Thanks.<br>
<div><br>
</div>
<div style="font-family: times new roman,new york,times,serif;
font-size: 12pt;"><br>
<div style="font-family: times new roman,new york,times,serif;
font-size: 12pt;"><font size="2" face="Tahoma">
<hr size="1"><b><span style="font-weight: bold;">From:</span></b>
Art Kendall <a class="moz-txt-link-rfc2396E" href="mailto:Art@DrKendall.org"><Art@DrKendall.org></a><br>
<b><span style="font-weight: bold;">To:</span></b>
jacqueline london <a class="moz-txt-link-rfc2396E" href="mailto:jackieblon@yahoo.com"><jackieblon@yahoo.com></a><br>
<b><span style="font-weight: bold;">Cc:</span></b>
<a class="moz-txt-link-abbreviated" href="mailto:SPSSX-L@LISTSERV.UGA.EDU">SPSSX-L@LISTSERV.UGA.EDU</a><br>
<b><span style="font-weight: bold;">Sent:</span></b> Thu,
July 22, 2010 4:14:03 PM<br>
<b><span style="font-weight: bold;">Subject:</span></b>
Re: [SPSSX-L] Fw: R-matrix<br>
</font><br>
<title></title>
What is the range of legitimate values for the variables?
Are there likely to be many cases that have a particular
pair of values?<br>
For example, if you have items that have a 1 to 5 response
scale, the are only 25 possible locations in a scatterplot
that cases can be located at. Also with 25 possible
locations it is possible that some of the 25 possible
locations have no cases.<br>
<br>
Please describe the variables more fully.<br>
<br>
Also some of the scatterplot graphics allow you to
"Jitter". <br>
<help> <search> "jitter"<br>
<br>
Art Kendall<br>
Social Research Consultants<br>
<br>
<br>
<br>
On 7/21/2010 10:06 PM, jacqueline london wrote:
<blockquote type="cite">
<div style="font-family: times new roman,new
york,times,serif; font-size: 12pt;">
<div><br>
</div>
<div style="font-family: times new roman,new
york,times,serif; font-size: 12pt;"><br>
<div style="font-family: times new roman,new
york,times,serif; font-size: 12pt;"><font size="2"
face="Tahoma">----- <br>
<b><span style="font-weight: bold;">Subject:</span></b>
R-matrix<br>
</font><br>
<div style="font-family: times new roman,new
york,times,serif; font-size: 12pt;">
<div>Hi all.<br>
I would like to do factor analysis of a
questionnaire that I have. I want to plot a
scatterplot graph first to see how things are,
before I do the matrix. There are 30 items in
the questionnaire and I have 155 subjects.
However I tried to plot a simple scatterplot
using only the ist and 2nd items. I got a graph
with only about 22 point with no clusters or
even 2 point close. I do not know what to do.
Shouldn't I see the correlation between item 1
and item 2 for all 155 participants? Would
someone please help?<br>
</div>
</div>
<br>
</div>
</div>
</div>
<br>
</blockquote>
</div>
</div>
</div>
<br>
</blockquote>
</body>
</html>
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (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
|