Publications by Dr. C.E. Stapleton

Cronbach's Alpha Calculation

12.02.2025

Cronbach’s Alpha Tutorial This tutorial will cover calculating Cronbach’s Alpha for a unidimensional scale. We will use the 2020 American National Election Study, and its scale for “Racial Resentment”. This scale is frequently used in the study of racism and is designed to measure feelings of racial animosity in a more indirect way than...

7563 sym Python (10190 sym/24 pcs) 3 img 10 tbl

Exploratory and Confirmatory Factor Analysis

12.02.2025

## Warning: package 'haven' was built under R version 4.2.3 ## Warning: package 'skimr' was built under R version 4.2.3 ## Warning: package 'psych' was built under R version 4.2.3 ## corrplot 0.92 loaded ## Warning: package 'lavaan' was built under R version 4.2.3 ## This is lavaan 0.6-15 ## lavaan is FREE software! Please report any bugs. ## ##...

14609 sym Python (27813 sym/43 pcs) 8 img 2 tbl

Preparing Survey Data for Analysis

05.02.2025

Cleaning and Recoding Data Prior to Analysis Anytime you import survey, or really any kind of, data into R, you should always ask yourself what you need to do to get it prepared for analysis. With survey data specifically, there are usually a few things that should always be checked and usually changed prior to conducting any type of analysis. ...

16869 sym Python (22085 sym/64 pcs)

Birthday Problem - Using Simulation in R

03.02.2025

Working with Simulations and Probability This tutorial covers using simulations in R to illustrate statistical properties. We will be using simulations throughout this semester so it is important that you familiarize yourself with why we do this and how to do this in R. Birthday Problem In a room of 15 people, what is the probability that 2 peo...

3695 sym 3 img

OLS on Ordinal Data

23.01.2025

OLS Assumptions There are several assumptions underpinning linear regression that should be tested. In this tutorial, we are going to look at well behaved residuals through simulating a relationship between two normally distributed variables (note that OLS assumes a normally distributed DV not IV but here we use normal distributions for both). ...

9360 sym 10 img 6 tbl

Visualization of Regression Results

22.01.2025

Data & Results Visualizations We will be working with the Flextable, Stargazer and jtools packages in this tutorial. For more information about each one, see the following links: https://jtools.jacob-long.com/articles/summ.html https://www.jakeruss.com/cheatsheets/stargazer/ https://ardata-fr.github.io/flextable-book/index.html Descriptive Data...

14127 sym Python (30154 sym/60 pcs) 12 img 18 tbl

Logit and Probit Modeling

16.01.2025

Analyzing Dichotomous Dependent Variables In this tutorial, we are going use the binomial distribution to simulate a dichotomous dependent variable, y, with a known relationship to an independent variable, x. We will then estimate the relationship using OLS, logistic and probit regressions and compare the results. Along the way, we will talk ab...

13224 sym Python (16316 sym/33 pcs) 5 img 2 tbl

Polynomials and Log Transformations with OLS

08.01.2025

Introduction OLS regression makes several assumptions about the data used in the model including linearity between the Xs and Y along with normally distributed continuous variables. When either of these are violated, it can introduce bias and/or inefficiency into your results. In this tutorial, we will review how data transformations can help s...

13389 sym 12 img

Multivariate OLS with Predicted Value Plots

06.01.2025

library(haven) ## Warning: package 'haven' was built under R version 4.2.3 library(ggplot2) ## Warning: package 'ggplot2' was built under R version 4.2.3 library(rstatix) ## Warning: package 'rstatix' was built under R version 4.2.3 ## ## Attaching package: 'rstatix' ## The following object is masked from 'package:stats': ## ## filter libr...

5287 sym Python (9970 sym/44 pcs) 3 img 1 tbl

Evaluating OLS Assumptions in R

27.12.2024

Introduction Any time you conduct a statistical analysis, you make specific assumptions about the data. For OLS regression, there are several specific assumptions that should be evaluated. Overall, assumption violations in OLS cause two general types of issues: - Bias (Drawing errorenous conclusions about the relationship between some X and som...

18224 sym 13 img