Category: Python
Test Normality Assumption for ANOVA in R
This tutorial shows how to test normality assumption for ANOVA in R. I will also highlight mistakes that people tend to make when testing normality. Math of Normality assumption for ANOVA Before going to details of how to do that...
Read Full Article →
Serial Mediation for Count Data (with R code)
Warning: Introduction This tutorial shows how to do serial mediation for count data. Complete R code is provided. The following are the theoretical models and conceptual framework, assuming IV, M1, M2 are close to normally distributed, and DV is the...
Read Full Article →
Mediation Analysis for Count Data (with R code)
Warning: Introduction This tutorial shows how to do mediation analysis for count data in R. Complete R code and examples are provided. There are two possible ways to consider count data. (1) You can just assume that the residuals are...
Read Full Article →
Mediation Analysis in R from Scratch (with R code)
This tutorial shows you how to do mediation analysis in R from scratch. As we know, quantitatively, mediation analysis is about if the product of a*b is statistically significant (see figure below). If you assume that a*b is normally distributed,...
Read Full Article →
One Variable Chi-square: Definition, examples, and formula
This tutorial explains the definition of One Variable Chi-square, and provides examples for it. Two types of one variable chi-square There are two possible ways of using chi-square tests: Chi-square goodness of fit test: It tests the difference between the...
Read Full Article →
Latex of unequal notation
Latex of unequal notation \( \neq \) is \neq.
Read Full Article →
One sample t-test: Definition, Formula, and Examples
This tutorial provides the definition of one sample t-test, the formulas of one sample t-test, examples of manual calculation. Definition and examples of One sample t-test One sample t-test is used to determine whether a mean is different from a...
Read Full Article →
Understanding Interaction Effects in Data Analysis
This tutorial introduces the basic idea of interaction effects in data analysis. This tutorial includes what an interaction effect is, example of an interaction effect, and the statistical methods to do the analysis. 1. What are interaction effects? (The definition)...
Read Full Article →
How to download CSV files from GitHub
This short tutorial shows how you can download CSV files from GitHub. Note that, this is different from read csv files from GitHub (for that, please refer to my other tutorial). Step 1: Right Click “Raw” First, you can go...
Read Full Article →
How to Get Current Weekday in Python
This tutorial shows how you can get the current weekday in Python with 2 examples. Method 1: use weekday() Method 2: use isoweekday() Examples of getting current weekday in Python Example 1 for method 1 We can also check which...
Read Full Article →