[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Permutation tests of paired analyses
I am just beginning to use permutation tests and seem to have begun with
a situation that is not commonly covered in the documentation and online
examples. I want to do permutation tests of paired analyses - for the
sake of simplicity, paired t-tests. I have no trouble with permutation
tests on independent groups...
The portion of these permutations that I can not get around is the need
to specify some 'variable' on the "permute" command. There is no single
variable for paired analyses. Then I thought I needed to create a
program to save the resultant 't' - I did that (see below) and the
program works but I still seem to be missing a step. I still need some
type of variable for the "permute" command and it does not accept the
't' value that I thought I was saving from the previous program 'return'
statement. I must be overlooking some very basic concept in this
In the following example, the variables, "RT_R" and "RT_L" comprise a
set of paired values.
program pttest, rclass
1. ttest RT_R==RT_L
2. return scalar t=r(t)
. permute ???? t=r(t), reps(1000)...
Thanks for any assistance!
* For searches and help try: