R Packages

Author

Steven J. Pierce

Modified

2024-06-13 12:43:18 EDT

In addition to providing access to custom R functions, one can use R packages as research compendiums (Marwick et al., 2018) that organize raw data, documentation, data management scripts, analysis scripts, and statistical results in a convenient format. The scripts can contain narrative text interleaved with R code that can manage data and insert formatted text, tables, figures, and reference sections when you render the script into a dynamic document. Below is a list of my publicly accessible R packages. I have others in preparation that will remain private repositories until relevant scholarly products have been published.

Some of the packages listed below relied on R Markdown scripts, but I have subsequently adopted a newer, more capable set of software tools for producing the research compendiums I have in preparation now.

1 piercer

The piercer package is my personal package of miscellaneous functions for use in my research and statistical consulting work. It is not particularly large, but developing it has been an excellent learning experience.

2 SAWpaper

The SAWpaper package contains the code and raw output for one of my papers (Winke et al., 2023). This paper used a continuation-ratio model to examine the validity of a computer-adaptive self-assessment of second language learners’ speaking proficiency. The PDF files include all results reported in the paper, plus additional output that was omitted due to page limits.

3 SSACHR

This SSACHR package contains the code and raw output for a paper that used criminal history data for suspected serial sexual offenders to examine the potential impact of mandatory forensic testing of sexual assault kits on crime prevention (Campbell et al., 2022). The PDF files therein include all results reported in the paper, plus additional output that was omitted due to page limits.

4 References

Campbell, R., Pierce, S. J., Goodman-Williams, R., & Feeney, H. (2022). A window of opportunity: Examining the potential impact of mandatory sexual assault kit (SAK) testing legislation on crime prevention. Psychology, Public Policy, and Law, 28(3), 446–458. https://doi.org/10.1037/law0000349
Marwick, B., Boettiger, C., & Mullen, L. (2018). Packaging data analytical work reproducibly using R (and friends). The American Statistician, 72(1), 80–88. https://doi.org/10.1080/00031305.2017.1375986
Winke, P., Zhang, X., & Pierce, S. J. (2023). A closer look at a marginalized test method: Self-assessment as a measure of speaking proficiency. Studies in Second Language Acquisition, 45(2), 416–441. https://doi.org/10.1017/S0272263122000079