3 Preprocessing

Splithalf requires that the input dataset has already undergone preprocessing (e.g. removal of error trials, RT trimming, and participants with high error rates). Splithalf should therefore be used with the same data that will be used to calculate summary scores and outcome indices.

In my earlier attempts to make splithalf as useful as possible I added a number of user-inputted variables that helped remove participants and trim RTs. This also resulted in far to many input variables and potential confusion.

You might need to do a little pre-processing if you have not saved your processing steps. Here is a code snippet that will work (each line includes a note about what the code is doing after the hash).

You will need to change the numbers to match your data. This code could be briefer, however has been structured like this for ease of use.

Note == indicates ‘is equal to’, :: indicates that the function uses the package indicated, in the first case the dplyr package (Wickham et al. 2018).

If following rt trims you also trimmed by SD, use the following as well. Note that this is for two standard deviations from the mean, within each participant, and within each condition and trialtype.

If you want to save yourself effort in running splithalf, you could also rename your variable (column) names to the function defaults using the following

References

Wickham, Hadley, Romain François, Lionel Henry, and Kirill Müller. 2018. Dplyr: A Grammar of Data Manipulation. https://CRAN.R-project.org/package=dplyr.