Date: Mon, 4 May 2009 15:55:40 +0200
Reply-To: Marta García-Granero <mgarciagranero@gmail.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Marta García-Granero <mgarciagranero@gmail.com>
Subject: Re: Interrater reliability (Dates & King, 2008)
In-Reply-To: <957196.16954.qm@web110712.mail.gq1.yahoo.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Brian, I had been modifying one of your inter rater macros too, to make
use of DATASET DEFINE instead of files saved to disk. I am also
simplifying some redundant loops (use only one loop to compute several
variables, instead of several loops to compute them one by one) to make
your code faster.When I'm done with it, I will send it to you. I plan to
use it in my advanced stats course (with ll credit being given to you,
of course, I'd never claim your work as mine).
Now, Albert-Jan:
Albert-Jan Roskam wrote:
> I am trying to use the macro for the calculation of various measures for interrater reliability (Dates & King, 2008), as was recently posted by Marta Garcia-Granero [By the way: thank you for that!]
>
>
> I modified the file and path names and of course also the macro calls.
> I use a separate sps file in which I define two file handles, one for the working dir (mydir), and one for the source sav file (myfile). In the macro, I replaced all occurrences of file=' with file='mydir/ and outfile=' with outfile='mydir/ . For testing purposes, I use a file with 100 cases and just 100 bootstrap replications.
>
> I receive a hail of error messages, and sometimes Spss (errrr, PASW) crashes altogether. The first error I get is a zerodivision error. Any idea what's happening? Is it (not) possible to use file handles in save/get within MATRIX - END MATRIX?
>
>
1) In "call_macros.sps" file, I used backslashes when defining the file
handles (I suppose it is not important, but since I copy-pasted the path
from My PC, mine were all backslashes, not forward-slashes as in your
2nd file handle).
My file handles:
file handle mydir /name = 'C:\Documents and
Settings\MartaGG\Escritorio\Nueva carpeta'.
file handle myfile /name ='C:\Documents and
Settings\MartaGG\Escritorio\TEXTOS\Avanzado CUN\KappaPaper.sav'.
Your file handles:
file handle mydir /name = '\\srsv1f\ssb3\GSB_Docum\Temp\arsm\temp'.
file handle myfile /name ='mydir/28042009
Herhaald_coderen_analyse_bestand_test.sav'. (<--- forward slash)
Perhaps the problem has to do with your network drive?
2) After modifying the file "bootstrap4.sps" (to make it run with my
variables, test1&test2, instead of yours), I had it "almost" working (OK
for 4 out of 5 macros). One of the macros has been overmodified, I'm
afraid, and something got lost. I get the following error message right
after the title "Step 2" is printed (steps 1, 3, 4 & 5 are OK).
I haven't been able to spot it.
Run MATRIX procedure:
>Error encountered in source line # 7622
>Error # 12354
>Subscript is out of range.
>This command not executed.
>Error encountered in source line # 7623
>Error # 12492
>An attempt has been made to use previously undefined matrix (or scalar).
>This command not executed.
Matrix - 'CKBCAUL' is undefined
>Error encountered in source line # 7623
>Error # 12363
>Undefined operand in the expression inside brackets.
>Error encountered in source line # 7624
>Error # 12492
>An attempt has been made to use previously undefined matrix (or scalar).
>This command not executed.
Matrix - 'CKBCASUM' is undefined
>Error encountered in source line # 7624
>Error # 12459
>The matrix to save is undefined.
Summary Table - Number of Subjects by Rater and Category
Category
Rater 20 27 29 24
24 28 24 24
Summary Table - Number of Agreements by Rater and Category
Category
Rater 15 18 16 17
15 18 16 17
------ END MATRIX -----
--
For miscellaneous SPSS related statistical stuff, visit:
http://gjyp.nl/marta/
=====================
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