Closed ryentes closed 3 years ago
Response by @awmeade via email
All correct. The choice of which one goes in which column is arbitrary and you could get different values by changing things around.
Probably a better version would try all possible combinations and then average the values, but that's a PITA. It's a lot like how a split-half correlation works. You'll get different values with different splits and people like coefficient alpha because it's computation like the mean of all possible split halfs.Richard, one idea for the R code would be in cases where an NA is returned, have the program attempt to run the loop again? I'd suggest a do-while NA type of loop, but you'd probably also want a counter in there to exit after x attempts to prevent infinite loops .
My reply by email:
I think this could work. With the size of the data we work with the end user probably wouldn't even notice the extra computation. I think there's a lot to mess with in the psych syn/ant space. It currently doesn't limit each item to one item pair, which is recommended somewhere (maybe Curran, 2016).
My reply by email:
I think this could work. With the size of the data we work with the end user probably wouldn't even notice the extra computation. I think there's a lot to mess with in the psych syn/ant space. It currently doesn't limit each item to one item pair, which is recommended somewhere (maybe Curran, 2016).
Regarding limiting each item to be used only once, just looked that up: "The maximum N for any given set of items is half the total number of items, assuming all items are used to create pairs, without replacement, in this process. That said, it is not recommended that all items be used, or for items to be used more than once" (Curran, 2016, p. 11, emphasis added).
I made a quick version that does a resampling of the X and Y position k times. But that is indeed a PITA computation-wise, the function becomes very slow even for k = 10. I suppose its best to implement the idea by @awmeade to loop while function returns NA, with a max. of 10 times. Future work could be to implement the advice to use each item only once. The question is, for which pair would one use it? For the highest (lowest) correlation in psychsyn (psychant)?
Fix is in place. Let's clean up the comments and push.
From Amanda Young Via email: