Date: Sun, 22 May 2011 10:12:57 -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: Repeated Statistical Procedure for different subsets
In-Reply-To: <BANLkTin443hVmoD+wbRZOGiaWjbxtMQiTA@mail.gmail.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">
<font size="+1">Python has pretty much made macros obsolete.<br>
<br>
However, given that you have an experiment (i.e., have random
assignment to treatment) and repeated measures, is highly probable
that a good general linear model that takes into account planned
comparisons, crossing, nesting, missing data, and repeats would
need things like t-tests only as post-hoc results.<br>
<br>
You really should think through the overall analysis first and
work from the top down rather than from the bottom up.<br>
<br>
The basic procedures at this time should most likely be limited to
quality assurance purposes. "findings" based on incomplete data
are very likely to be spurious and just confuse thinking by
inducing things like anchoring effects.<br>
<br>
One thing that helps some people is to build a simulation that has
the kind of data you expect in the long run and develop your
syntax for the overall model using that. Simulating also helps
getting a handle on the thought process of the analysis.<br>
<br>
Art Kendall<br>
Social Research Consultants<br>
<br>
</font><br>
On 5/22/2011 9:44 AM, Eduard Salahov wrote:
<blockquote
cite="mid:BANLkTin443hVmoD+wbRZOGiaWjbxtMQiTA@mail.gmail.com"
type="cite">
<div dir="ltr">Thank you, Art,
<div><br>
<div>Meantime i was searching in the net and realized that the
best way would be to learn more about </div>
<div>macros or Python (never used them before).</div>
<div>It is experimental study with two groups with repeated
analyses in the middle of the data collection and I am
trying to develop procedures while it is being conducted.</div>
<div>at this stage data is arriving in portions (case by case
or variables by variables) so I am implementing then into
database right away and run the basic (so far) procedures. </div>
<div>But my impression that it is time to learn how to shorten
some syntax procedures especially when they are identical
for different combinations, f.e.</div>
<div><br>
</div>
<div>1. compute difference between measurements abs and %</div>
<div>2. on results of 1 to compute set of index variables </div>
<div>3. then run independent and paired samples comparisons</div>
<div><br>
</div>
<div>so it seems that I must learn macros or Python now.</div>
<div> <br>
<br>
<div class="gmail_quote">On Sun, May 22, 2011 at 16:05, Art
Kendall <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:Art@drkendall.org" target="_blank">Art@drkendall.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"> <tt><font
size="+1">t-test groups= sex(1,2) /variables -
var1, var2, var37 to var 41, var99.</font></tt><br>
<br>
or <br>
<tt>anova variables = <font size="+1">var1, var2,
var37 to var 41, var99 by </font></tt><font
size="+1"><tt>sex(1,2) city(1,5), race(1,4)... with
income, height, body_weight...<br>
</tt></font><font size="+1"><br>
or some other kind of General Linear Model. Given
that you have enough cases, which kind would depend
on how many dependent variables you have and their
level of measurement, and how many independent
variables and their level of measurement.<br>
<br>
Are your subsets completely separate? <br>
<br>
Are you possibly thinking of using macros or Python
to to shortcut writing a lot of syntax?<br>
<br>
It is difficult to be more specific in my
suggestions without details such as how many cases
you have, whether your study is experimental,
quasi-experimental, or just reporting, what
questions you are trying to answer, whether you are
trying to set up a procedure for ongoing analysis by
other people, what is the nature of and level of
measurement of your variables, etc.<br>
<br>
SPLIT may be part of the answer, crossing or nesting
may be part of the answer, repeated measures may be
part of the answer, etc.
<div><br>
<br>
<br>
Art Kendall<br>
Social Research Consultants<br>
<br>
<br>
</div>
</font>
<div>
<div>On 5/22/2011 8:33 AM, Eduard Salahov wrote:
<blockquote type="cite">
<div dir="ltr">Dear Art,
<div>Thank you for prompt reply
<div><br>
<div>Yes analysis is more complicated that
is why I am not satisfied with only
SPLIT.</div>
<div><br>
</div>
<div>Even more to that, I have a set of
dependent and independent variables and
to avoid writing a code of the same stat
procedures for each combination of
variables and then correcting ALL of
them (any correction to the procedure
syntax code) I wanted to write one
procedure and apply it to different
combinations of variables and for
different subsets.</div>
<div><br>
</div>
<div>Actually in my question I should have
mentioned that I am looking for a
COMMAND that will introduce </div>
<div>different variables from the list of
variables as well, f.e. var1 var2 var3
... var10</div>
<div><br>
</div>
<div>t-test var1 by sex.</div>
<div>then </div>
<div>t-test var2 by sex </div>
<div>and so on.</div>
<div><br>
</div>
<div>Thank you,</div>
<div><br>
</div>
<div>Eduard.</div>
<div><br>
<br>
<div class="gmail_quote">On Sun, May 22,
2011 at 14:12, Art Kendall <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:Art@drkendall.org"
target="_blank">Art@drkendall.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin: 0pt 0pt 0pt 0.8ex;
border-left: 1px solid rgb(204, 204,
204); padding-left: 1ex;">
<div bgcolor="#ffffff"
text="#000000"> <font size="+1">if
you want the cities in one table<br>
</font><font size="+1"><tt>sort
cases by city.<br>
split file layered by city.</tt></font><font
size="+1"><br>
<br>
or if you want each city in a
separate table<br>
</font><font size="+1"><tt>split
file separate by city.</tt></font><font
size="+1"><br>
<br>
However, given your example, is
it possible that you want a more
complex anova than just separate
t-test?<br>
<br>
Art Kendall<br>
Social Research Consultants<br>
</font><br>
On 5/22/2011 5:44 AM, EduSaR
wrote:
<blockquote type="cite">
<pre>Dear All,
Please suggest the way to deal with the following task.
I have database with cases from 5 different cities and I need to run same
statistical procedures for each of city.
To make it simple, let's say I want to run t-testA and t-testB for city 1,
then for city 2 and so on.
So I thought of doing something like that
loop #n = 1 to 5. (in this example max for #n is 5 because cities
are coded 1 to 5)
filter = #n.
t-testA.
t-testB.
end loop.
This specific approach would not work because loop is used for
transformation command only.
If I am right LOOP is "going" from case to case in the data base repeating
procedure for current case only and that is why it is used only for
transformations.
In my case I need a command that will go through entire dataset selecting
cases from city 1 and run two t-tests, then again though entire dataset
selecting cases from city 2 ... and so on 5 times. What command could you
suggest for such situation?
Sincerely, Eduard.
--
View this message in context: <a moz-do-not-send="true" href="http://spssx-discussion.1045642.n5.nabble.com/Repeated-Statistical-Procedure-for-different-subsets-tp4416436p4416436.html" target="_blank">http://spssx-discussion.1045642.n5.nabble.com/Repeated-Statistical-Procedure-for-different-subsets-tp4416436p4416436.html</a>
Sent from the SPSSX Discussion mailing list archive at Nabble.com.
=====================
To manage your subscription to SPSSX-L, send a message to
<a moz-do-not-send="true" href="mailto:LISTSERV@LISTSERV.UGA.EDU" target="_blank">LISTSERV@LISTSERV.UGA.EDU</a> (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
</pre>
</blockquote>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</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
|