-
hi! I am calculating the splithalf reliability for a computer task. The task does not have different conditions, and included 282 trials. In the end, each trial gives one score (0= correctly identified stimulus in control location, 1 = correctly identified stimulus in experimental stimuli location, NA = not correctly identified). Looking into different vignettes for splithalfr, I thought the RAPI sumscore (https://rdrr.io/cran/splithalfr/f/vignettes/rapi_sum.Rmd) was here most appropriate. I went exactly by the RAPI example on the website, and everything worked except for one thing. Just when I want to calculate the CI intervals in the last step exactly as in your example: split_ci(split_scores, coefs), it gives me this error message: Error in fn_coef(ds[, paste("score_1", split_i, sep = ".")], ds[, paste("score_2", : Could not find "fn_coef" function Interestingly, when I run the example code from the website with the example data, I get the same error message. [I am using R 4.0.3.] |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey, Thanks for reporting this issue! The vignettes are indeed incorrect. The second argument to Since you found an issue and reported it in a way that made it very easy for me to reproduce the issue and fix it, may I acknowledge you in the next release? If so, got any personal web-page that I can link to? Cheers Thomas |
Beta Was this translation helpful? Give feedback.
Hey,
Thanks for reporting this issue! The vignettes are indeed incorrect. The second argument to
split_ci
should be one of the functions for calculating a reliability coefficient (i.e.,spearman_brown
,flanagan_rulon
, orangoff_feldt
). Concretely, this means the line below should work. Note thatsplit_ci
is quite slow; the calculations are very intensive and the package I use for it (bcaboot) is not yet optimized to run on multiple cores.split_ci(split_scores, spearman_brown)
Since you found an issue and reported it in a way that made it very easy for me to reproduce the issue and fix it, may I acknowledge you in the next release? If so, got any personal web-page that I can link to?
Chee…