Statistics
Courses & Tutorials Only
A guide to working with country-year panel data and Bayesian multilevel models
By Andrew Heiss
Added Sun Dec 12, 2021
What is this?
Excerpt from guide: “Here’s a basic guide to dealing with country-year panel data using Bayesian multilevel modeling!”
- Link to guide here: https://www.andrewheiss.com/blog/2021/12/01/multilevel-models-panel-data-guide/
Advanced-Research-Methods-for-Psychologists
What is this?
Excerpt from site: Lesson files used in the Advanced Research Methods for Psychologists - Practical Applications in R, taught at Ben-Gurion University on the Negev.
- Link to repo here: https://github.com/mattansb/Advanced-Research-Methods-foR-Psychologists
An introduction to statistics in R
What is this?
Excerpt from site: A series of tutorials by Mark Peterson for working in R
- Link to site here: http://petersonbiology.com/math230Notes/dataInR.html
Analysis of Factorial Designs for Psychologists
What is this?
Excerpt from site: This Github repo contains all lesson files used in the graduate-level course: Analysis of Factorial Designs foR Psychologists - Practical Applications in R, taught at Ben-Gurion University on the Negev (spring 2019 semester). This course assumes basic competence in R (importing, regression modeling, plotting, etc.), a long the lines of the prerequisite course, Advanced Research Methods foR Psychologists, which can be found here.
Bayesian Data Analysis course
By Aki Vehtari
What is this?
Excerpt from course site: This is the web page for the Bayesian Data Analysis course at Aalto (CS-E5710) by Aki Vehtari.
- Link to course: https://avehtari.github.io/BDA_course_Aalto/
- Electronic book for course here: https://users.aalto.fi/~ave/BDA3.pdf
Bayesian statistics with R
Added Tuesday Oct 12th, 2021
What is this?
Learning objectives from site: Try and demystify Bayesian statistics, and MCMC methods; Make the difference between Bayesian and Frequentist analyses; Understand the Methods section of a paper that does Bayesian stuff; Run Bayesian analyses with R (in Jags)
- Link to site: https://oliviergimenez.github.io/bayesian-stats-with-R/
- Link to repo: https://github.com/oliviergimenez/bayesian-stats-with-R
- Link to recording: https://www.youtube.com/watch?v =uvU-TmEt8_M
Check how good your model is using “Performance”package
Added Thursday Dec 31st, 2020
What is this?
Excerpt from site: Utilities for computing measures to assess model quality, which are not directly provided by R’s ‘base’ or ‘stats’ packages. These include e.g. measures like r-squared, intraclass correlation coefficient (Nakagawa, Johnson & Schielzeth (2017) doi:10.1098/rsif.2017.0213), root mean squared error or functions to check models for overdispersion, singularity or zero-inflation and more. Functions apply to a large variety of regression models, including generalized linear models, mixed effects models and Bayesian models.
- Link to review video by Yury Zablotski here: https://www.youtube.com/watch?fbclid=IwAR296jgFcxLDNHE0zatJlMWGFb8RTVcWfYpRQ9261wzvlacp8M0BDs1K3iI&v=EPIxQ5i5oxs&feature=youtu.be
- Link to CRAN vignette here: https://cran.r-project.org/web/packages/performance/performance.pdf
- Link to repo here: https://easystats.github.io/performance/
Comparing Multiple Means in R: Repeated Measures ANOVA in R
Added Sun Sep 13th, 2020
What is this?
Excerpt from site: This chapter describes the different types of repeated measures ANOVA, including: One-way repeated-measures ANOVA, two-way repeated-measures ANOVA, three-way repeated-measures ANOVA.
- Link to site here: https://www.datanovia.com/en/lessons/repeated-measures-anova-in-r/
Conversion in Psychology-MsC course
What is this?
Excerpt from site: This book contains the quantitative research methods materials for students on the MSc Conversion in Psychological Studies/Science. The students are typically a diverse cohort and range from those with no STEM or programming background to engineering and computing science graduates. Compared to the undergraduate degree, the students are older, and there is a greater incidence of computer anxiety.
The focus for the MSc is to provide a basic but solid competency in core data skills and statistics that can be built on in further study. Students who wish to push themselves beyond the core competencies are encouraged to consult the MSc Data Skills course where they can learn about e.g., simulation and custom functions. To support those students who may have very limited computer literacy, the beginning stages are more supported than in the undergraduate programme e.g., with an increased use of screenshots and explanations for terminology.
- Course is here: https://psyteachr.github.io/msc-conv-f2f/
Crump Lab Statistics for Undergrads in Psychology Textbook
What is this?
This is a FREE Statistics for Undergrads in Psychology Textbook, on a creative commons license. Source code for everything available in the respective repos.
- Web-book is here: https://crumplab.github.io/statistics/
- Lab manual is here: https://crumplab.github.io/statisticsLab/
- Course website is here: https://crumplab.github.io/psyc3400/
GAM in R
By Noam Ross
What is this?
Excerpt from site: Generalized Additive Models in R. This short course will teach you how to use these flexible, powerful tools to model data and solve data science problems. GAMs offer offer a middle ground between simple linear models and complex machine-learning techniques, allowing you to model and understand complex systems.
- Link to the interactive course here: https://noamross.github.io/gams-in-r-course/
Learn Tidymodels
What is this?
Excerpt from site: After you know what you need to get started with tidymodels, you can learn more and go further. Find articles here to help you solve specific problems using the tidymodels framework.
- Link to site here: https://www.tidymodels.org/learn/
Learning Stats with Andy Wills and others:
- Group differences
- Evidence: What’s a P value?, t-tests by Andy Wills & Chris Berry
- More on T-tests
- More on Bayes Factors by Andy Wills & Chris Berry
- Inter-rater reliability by Michaela Gummerum & Andy Wills 💯
- More on Cohen’s Kappa 💯
- Within-subject differences by Andy Wills and Clare Walsh
- Factorial differences by Andy Wills and Clare Walsh
- Factorial differences, part 2 by Andy Wills and Clare Walsh
- Traditional ANOVA by Andy Wills
- Better tables by Paul Sharpe, Andy Wills
- Analysing scales by Paul Sharpe, Andy Wills, Sophie Homer
- Traditional non-parametric tests by Paul Sharpe
Linear Mixed Effects Models - R
Added by Tue Oct 12, 2021
What is this?
Excerpt from twitter post: an accessible guide to Linear Mixed Effects Models in R using the lmer package (with background stats intro & coding examples).
Pckages for Exploratory Data Analysis💯
What is this?
This is a list of all the packages mentioned in the “The Landscape of R Packages for Automated Exploratory Data Analysis” article by Mateusz Staniak & Przemysław Biecek. Check the paper out!
- The arsenal package (Heinzen et al., 2019): https://cran.r-project.org/web/packages/arsenal/arsenal.pdf
- The autoEDA package (Horn, 2018a): https://github.com/XanderHorn/autoEDA
- The DataExplorer (Cui, 2019): https://cran.r-project.org/package=DataExplorer
- The dataMaid (Petersen and Ekstrom, 2018): https://cran.r-project.org/package=dataMaid
- The dlookr (Ryu, 2019) package: https://cran.r-project.org/package=dlookr
- The ExPanDaR package (Gassen, 2018): https://github.com/joachim-gassen/ExPanDaR
- The explore package (Krasser, 2019): https://cran.r-project.org/package=explore
- The exploreR package (Coates, 2016): https://cran.r-project.org/package=exploreR
- The package funModeling (Casas, 2019): https://cran.r-project.org/package=funModeling
- The inspectdf package (Rushworth, 2019): https://cran.r-project.org/package=inspectdf
- The RtutoR package (Nair, 2018a): https://cran.r-project.org/package=RtutoR
- The SmartEDA package (Ubrangala et al., 2018): https://cran.r-project.org/package=SmartEDA
- The summarytools package (Comtois, 2019): https://cran.r-project.org/package=summarytools
- The package visdat (Tierney, 2017): https://cran.r-project.org/web/packages/visdat/index.html
- The xray (Seibelt, 2017) package: https://cran.r-project.org/package=xray
- The package tableone (Yoshida and Bohn., 2018): https://cran.r-project.org/package=tableone
- The describe function from describer package (Hendricks, 2015): https://cran.r-project.org/package=describer
- The skimr (Quinn et al., 2019) package: https://cran.r-project.org/package=skimr
- The prettyR (Lemon and Grosjean, 2018) package: https://cran.r-project.org/package=prettyR
- The package Hmisc (Harrell Jr et al., 2019) Describe function: https://cran.r-project.org/package=Hmisc
PSYCH 252: Statistical Methods at Stanford University
What is this?
Excerpt from site: This course offers an introduction to advanced topics in statistics with the focus of understanding data in the behavioral and social sciences. It is a practical course in which learning statistical concepts and building models in R go hand in hand.
- Link to e-course here: https://psych252.github.io/
PsyTeachR University of Glasgow
What is this?
Excerpt from site: The psyTeachR team at the University of Glasgow School of Psychology and Institute of Neuroscience and Psychology has successfully made the transition to teaching reproducible research using R across all undergraduate and postgraduate levels. Our curriculum now emphasizes essential ‘data science’ graduate skills that have been overlooked in traditional approaches to teaching, including programming skills, data visualisation, data wrangling and reproducible reports. Students learn about probability and inference through data simulation as well as by working with real datasets.
This website contains our open materials for teaching reproducible research.
Courses books:
- Link to site here: https://psyteachr.github.io/
- Link to Level 1 Data Skills here: https://psyteachr.github.io/ug1-practical/
- Link to Level 2 Research Methods and Statistics Practical Skills here: https://psyteachr.github.io/ug2-practical/
- Link to Level 3 Learning Statistical Models Through Simulation in R here: https://psyteachr.github.io/ug3-stats/
- Link to MSc Conversion in Psychological Studies/Science here: https://psyteachr.github.io/msc-conv-f2f/
- Link to Data Skills for Reproducible Science here: https://psyteachr.github.io/msc-data-skills/
R course
What is this?
Excerpt from course: The goal of this course is to give you the skills to do the statistics that are in current published papers, and make pretty figures to show off your results. While we will go over the mathematical concepts behind the statistics, this is NOT meant to be a classical statistics class. We will focus more on making the connection between the mathematical equation and the R code, and what types of variables fit into each slot of the equation.
- Link to course here: https://pagepiccinini.com/r-course/
R For SNA
By Eric Brewe
What is this?
Excerpt from site: This workshop was designed to help get you started on using R to analyze social network data.
- Link to three workshops: https://ericbrewe.com/courses/rforsna/
- Link to Workshop 1: https://ericbrewe.com/courses/rforsna/ws1/
- Link to Workshop 2: https://ericbrewe.com/courses/rforsna/ws2/
- Link to Workshop 3: https://ericbrewe.com/courses/rforsna/ws3/
Reproducible Statistics for Psychologists with R-Lab Tutorials
What is this?
Excerpt from site: This is a series of labs/tutorials currently under development (2020-2021) for a two-semester graduate-level statistics sequence in Psychology @ Brooklyn College of CUNY. The goal of these tutorials is to 1) develop a deeper conceptual understanding of the principles of statistical analysis and inference; and 2) develop practical skills for data-analysis, such as using the increasingly popular statistical software environment R to code reproducible analyses.
- Link to website here: https://crumplab.github.io/rstatsforpsych/index.html
Running Multiple Linear Regression Models in for-Loop
Added Sun June 6th, 2021
What is this?
Excerpt from site: In this article, I’ll show how to estimate multiple regression models in a for-loop in the R programming language.
- Link to article here: https://statisticsglobe.com/r-multiple-regressions-in-for-loop
Statistical Analysis and Visualizations Using R
By Okan Bulut
Added Thu April 15th, 2021
What is this?
Excerpt from site: This full-day course is intended to provide participants with a hands-on training in exploring, visualizing, and analyzing data using the R programming language.1 To control R, participants will use RStudio, which is a free, user-friendly program with a console, syntax-highlighting editor that supports direct code execution, and a variety of robust tools for plotting.
- Link to course here: https://okanbulut.github.io/rbook/
Statistical Thinking for the 21st Century 💯
What is this?
Excerpt from site: The goal of this book is to the tell the story of statistics as it is used today by researchers around the world. It’s a different story than the one told in most introductory statistics books, which focus on teaching how to use a set of tools to acheive very specific goals. This book focuses on understanding the basic ideas of statistical thinking — a systematic way of thinking about how we describe the world and make decisions and predictions, all in the context of the inherent uncertainty that exists in the real world. It also brings to bear current methods that have only become feasible in light of the amazing increases in computational power that have happened in the last few decades. Analyses that would have taken years in the 1950’s can now be completed in a few seconds on a standard laptop computer, and this power unleashes the ability to use computer simulation to ask questions in new and powerful ways.
- Link to site here: https://statsthinking21.org/
- Link to core text here: https://statsthinking21.github.io/statsthinking21-core-site/
- Link to R repo here: https://github.com/statsthinking21/statsthinking21-R
- Link to Python repo here (under work now): https://github.com/statsthinking21/statsthinking21-python
STAT 545 Data wrangling, exploration, and analysis with R 💯
By Jenny Bryan
What is this?
Excerpt from site: This site is about everything that comes up during data analysis except for statistical modelling and inference. This might strike you as strange, given R’s statistical roots. First, let me assure you we believe that modelling and inference are important. But the world already offers a lot of great resources for doing statistics with R.
- Link to the site: https://stat545.com/
Statistics of DOOM Youtube Channel
What is this?
Excerpt from site: Support Statistics of DOOM! This page and the YouTube channel to help people learn statistics by including step-by-step instructions for SPSS, R, Excel, and other programs. Demonstrations are provided including power, data screening, analysis, write up tips, effect sizes, and graphs. Help guides and course materials are also provided!
- Link to Youtube Channel here: https://www.youtube.com/c/StatisticsofDOOM/videos
Teaching Methods with R
What is this?
Excerpt from site: Research Methods in R is a set of guides on how to use R as your central research methods tool. The target audience is psychology undergraduate students. Research Methods in R is Creative Commons, so you are free to reuse these materials and adapt them as you wish, as long as you attribute them to their authors, and as long as your modifications have a Creative Commons licence. They come with absolutely no warranty of any kind.
- Link to site here: https://ajwills72.github.io/rminr/
Teacup Giraffes_Intro to Statistics🦒
By Hasse Walum & Desirée De Leon
What is this?
The site’s purpose is to introduce you to statistics with R. Very concise and clear 😄 !
- Link to the “Introduction to the Normal Distribution” module here: https://tinystats.github.io/teacups-giraffes-and-statistics/02_bellCurve.html
- Link to the “Measures of centrality: Mean, Median, & Mode” module here: https://tinystats.github.io/teacups-giraffes-and-statistics/03_mean.html
- Link to the “The Spread of the Data: Variance * Standard Deviation” module here: https://tinystats.github.io/teacups-giraffes-and-statistics/04_variance.html
- Link to the “A tale of two variables: Covariance & Correlation” module here: https://tinystats.github.io/teacups-giraffes-and-statistics/05_correlation.html
- Link to the “Introduction to Inference: Standard Error” module here: https://tinystats.github.io/teacups-giraffes-and-statistics/06_standardError.html
Test your model!! Performance package
What is this?
Test if your model is a good model! The primary goal of the performance package is to provide utilities for computing indices of model quality and goodness of fit. This includes measures like r-squared (R2), root mean squared error (RMSE) or intraclass correlation coefficient (ICC), but also functions to check (mixed) models for overdispersion, zero-inflation, convergence or singularity.
- Link to information: https://easystats.github.io/performance/index.html
Visualizing research trends
By Dan Quintana
What is this?
Dan Quintana made a screencast of how to visualise research trends for a paper introduction or grant application using the {europepmc}
- Link to screencast: https://twitter.com/dsquintana/status/1166083585771802626?s=20
- Link to code: https://gist.github.com/dsquintana/b512b715786088339b61a7fb79367d5e
Power Analysis
This section has all resources I encounter to run power analysis regardless of them using R or not.
powerLATE:
Excerpt from site: powerLATE implements the generalized power analysis for the local average treatment effect (LATE), proposed by Bansak (2020).
Power analysis is in the context of estimating the LATE (also known as the complier average causal effect, or CACE), with calculations based on a test of the null hypothesis that the LATE equals 0 with a two-sided alternative. The method uses standardized effect sizes to place a conservative bound on the power under minimal assumptions. powerLATE allows users to recover power, sample size requirements, or minimum detectable effect sizes. It also allows users to work with absolute effects rather than effect sizes, to specify an additional assumption to narrow the bounds, and to incorporate covariate adjustment.
Simulation for Power Analysis
Excerpt from site: In this document we’ll talk about power analysis in general and how it’s done, and then we’ll go into how to perform a power analysis using simulation in R, making use of tools from the tidyverse.