18 Language for publications

18.1 ⭐️Overview

This chapter is about language I often need to use and adapt for peer reviewed publications.

18.2 🌎Useful websites

18.3 📦Load packages

library(tidyverse, warn.conflicts = FALSE)
library(freqtables)
library(meantables)

18.4 Statistical software

In manuscripts, I often want to say something about the software I used to conduct the statistical analyses. Here is an example.

18.4.1 R

Statistical analyses were conducted using R version 4.1.0 (R Core Team, 2021) in RStudio version 1.4.1717 (RStudio Team, 2021) with the following packages: tidyverse (Wickham et al., 2019), freqtables (Cannell, 2020), meantables (Cannell, 2020).

The functions below can be used to get citations and version numbers.

citation()
## 
## To cite R in publications use:
## 
##   R Core Team (2022). R: A language and environment for statistical
##   computing. R Foundation for Statistical Computing, Vienna, Austria.
##   URL https://www.R-project.org/.
## 
## A BibTeX entry for LaTeX users is
## 
##   @Manual{,
##     title = {R: A Language and Environment for Statistical Computing},
##     author = {{R Core Team}},
##     organization = {R Foundation for Statistical Computing},
##     address = {Vienna, Austria},
##     year = {2022},
##     url = {https://www.R-project.org/},
##   }
## 
## We have invested a lot of time and effort in creating R, please cite it
## when using it for data analysis. See also 'citation("pkgname")' for
## citing R packages.
R.Version()$version.string
## [1] "R version 4.2.1 (2022-06-23)"
# Won't run when I build book, but this is how you get the RStudio version number
rstudioapi::versionInfo()
## Error: RStudio not running
citation("tidyverse")
## 
## To cite package 'tidyverse' in publications use:
## 
##   Wickham H, Averick M, Bryan J, Chang W, McGowan LD, François R,
##   Grolemund G, Hayes A, Henry L, Hester J, Kuhn M, Pedersen TL, Miller
##   E, Bache SM, Müller K, Ooms J, Robinson D, Seidel DP, Spinu V,
##   Takahashi K, Vaughan D, Wilke C, Woo K, Yutani H (2019). "Welcome to
##   the tidyverse." _Journal of Open Source Software_, *4*(43), 1686.
##   doi:10.21105/joss.01686 <https://doi.org/10.21105/joss.01686>.
## 
## A BibTeX entry for LaTeX users is
## 
##   @Article{,
##     title = {Welcome to the {tidyverse}},
##     author = {Hadley Wickham and Mara Averick and Jennifer Bryan and Winston Chang and Lucy D'Agostino McGowan and Romain François and Garrett Grolemund and Alex Hayes and Lionel Henry and Jim Hester and Max Kuhn and Thomas Lin Pedersen and Evan Miller and Stephan Milton Bache and Kirill Müller and Jeroen Ooms and David Robinson and Dana Paige Seidel and Vitalie Spinu and Kohske Takahashi and Davis Vaughan and Claus Wilke and Kara Woo and Hiroaki Yutani},
##     year = {2019},
##     journal = {Journal of Open Source Software},
##     volume = {4},
##     number = {43},
##     pages = {1686},
##     doi = {10.21105/joss.01686},
##   }
citation("freqtables")
## 
## To cite package 'freqtables' in publications use:
## 
##   Cannell B (2022). _freqtables: Make Quick Descriptive Tables for
##   Categorical Variables_. R package version 0.1.1,
##   <https://CRAN.R-project.org/package=freqtables>.
## 
## A BibTeX entry for LaTeX users is
## 
##   @Manual{,
##     title = {freqtables: Make Quick Descriptive Tables for Categorical Variables},
##     author = {Brad Cannell},
##     year = {2022},
##     note = {R package version 0.1.1},
##     url = {https://CRAN.R-project.org/package=freqtables},
##   }

18.4.2 Stata

All analyses were conducted using Stata 13 (StataCorp, 2013)

18.4.3 SAS

All analyses were completed with SAS version 9.4 (SAS Institute, Cary, NC).

18.5 IRB

The Committee for the Protection of Human Subjects at the University of Texas Health Science Center approved this project.

The design and conduct of this study was reviewed and approved by the Committee for the Protection of Human Subjects at the University of Texas Health Science Center at Houston.

The University of Florida’s IRB approved the use of de-identified data to conduct this analysis.