How Do You Create APA Tables and Psychology Oriented Analysis in R with the rempsyc Package?

4.4K views
•
November 24, 2022
by
Dr Lyndon Walker
YouTube video player
How Do You Create APA Tables and Psychology Oriented Analysis in R with the rempsyc Package?

TL;DR

The rempsyc package creates neatly formatted APA tables for psychology-oriented statistical analysis in R. It supports multiple independent-samples t-tests, Bonferroni correction, Cohen's d, confidence intervals, regression results and model-assumption checks. Tables can highlight results with p-values below 0.05 and be saved as Word documents, so read on for the specific functions and formatting options.

Transcript

hi friends welcome back to the channel today the package in r that I wanted to show you is called REM psych uh psych without the H if you are doing a Google search for it and this is a package that gives you results that you can format really nicely into APA format for publication in journals particularly in Psychology so it is very focused on psyc... Read More

Key Insights

  • "this is a package that gives you results that you can format really nicely into APA format for publication in journals particularly in Psychology" (0:10)
  • "here we've actually done six t-tests for six different dependent variables" (1:49)
  • "P because it is psychology based it has given us Cohen's d as well which can be a useful measure of effect size as well as confidence intervals" (2:00)
  • "if we have a look at a nice table it produces us an APA formatted table" (3:26)
  • "all of these can be saved to word" (4:35)

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What does the rempsyc package do in R?

The rempsyc package formats statistical results into APA-style tables for journal publication, particularly in psychology. It produces tables and other useful outputs, and it may also help researchers outside psychology.

Q: How do you install the rempsyc package?

Install the rempsyc package from CRAN by opening the package installation interface and typing its name. The transcript notes that the package name uses psych without the H when searching for it.

Q: Can rempsyc run multiple independent-samples t-tests?

Yes. You can provide a set of response variables and a grouping variable, as demonstrated with six dependent variables from the mtcars data set and two categories from the am variable.

Q: What statistics does rempsyc report for t-tests?

For each t-test, the package reports t, degrees of freedom and p. It also provides Cohen's d as an effect-size measure and includes confidence intervals.

Q: How does rempsyc correct for multiple testing?

The package can apply a Bonferroni correction when several tests are performed. In the six-test example, it adjusts the p-values to account for the cumulative chance of a false positive across multiple independent tests.

Q: How does the nice_table function format results?

The nice_table function produces an APA-formatted table with lines around the header and at the bottom. It centers and rounds the results, formats p-values to three decimal places, and removes the leading zero from p-values.

Q: Can rempsyc highlight and export statistical tables?

Setting highlight to true highlights and bolds rows with a p-value below 0.05. A table can also be saved with save_as_docx, producing a Word document that can be copied into a journal article.

Q: What regression features does rempsyc provide?

The package can format regression results with nice_lm and present model checks with nice_assumptions and nice_table. The demonstrated checks include Shapiro-Wilk for normality, another test named unclearly in the transcript, and Durbin-Watson for residual autocorrelation, while a capital B label changes the column title from b to beta.

Summary & Key Takeaways

  • The REMpsych package in R is designed to ease the formatting of statistical results in APA style, particularly suited for psychology publications. It simplifies the presentation of data relevant for journal submission.

  • Key functionalities include performing t-tests and regression analyses while producing formatted tables, including appropriate statistical measures like Cohen's d and p-values. This caters specifically to the requirements of psychology research.

  • The package also supports multiple testing corrections and generates visual representations like violin plots, enhancing interpretability while adhering to APA guidelines. This is useful for researchers seeking to present concise and clear statistical results.


Read in Other Languages (beta)

Share This Summary 📚

Explore More Summaries from Dr Lyndon Walker 📚