[Statistics] Collinearity in regression
library(knitr) library(ggplot2) library(dplyr) library(tidyr) library(broom) Problem When performing regression analysis, you may encounter two or more predictors that are highly correlated. This is called collinearity or multicollinearity. It can cause problems in estimating the regression coefficients and interpreting the results. In this post, I will show how collinearity can affect regression analysis, how to detect collinearity, and how to deal with it. Example: one predictor is a linear function of another predictor Let’s simulate data with the following variables:
2026-10-16   schedule 5 min 25 s  
[R] Understanding position_dodge() and position_dodge2() in ggplot2
A deep dive into position_dodge() and position_dodge2() in ggplot2, comparing width parameters, dodging behavior, and how preserve="single" handles missing elements.
2026-08-30   schedule 6 min 30 s  
[Linux] Handling grep Exit Codes in Scripts with set -e and set -o pipefail
Learn why grep exit code 1 causes strict Bash scripts with set -e and set -o pipefail to terminate unexpectedly, and explore practical solutions to handle it safely.
2026-08-15   schedule 5 min 4 s  
[R] Environment Variables in R Shiny-Server Container: Problem and Solutions
Understand why ENV variables set in Dockerfile disappear when Shiny Server launches R apps, and learn the two best ways to solve it.
2026-08-15   schedule 2 min 48 s  
[Nextflow] Nextflow AWS options: where they take effect
A guide to understanding how Nextflow AWS config options map to S3 transfer layers between the head node and AWS Batch job containers.
2026-07-25   schedule 2 min 54 s  
[AI] Maximizing Your Claude Code Productivity: Key Takeaways and Resources
A comprehensive summary of the LinkedIn course on Maximizing Claude Code Productivity, covering Spec-Driven Development, subagents, custom skills, hooks, and routines.
2026-07-18   schedule 3 min 24 s  
[git] Git Worktree: Working on Multiple Branches Simultaneously
Learn how to use Git Worktree to manage multiple active branches simultaneously in separate directories without switching, stashing, or multiple clones.
2026-06-27   schedule 3 min 53 s  
[R] How to Position the Legend Inside a Plot in ggplot2
A guide on how to place and fine-tune legend positioning inside a ggplot2 plot using several examples.
2026-05-30   schedule 2 min 33 s  
[R] How to use ggpattern to add patterns to ggplot2 plots
A guide on how to use the ggpattern package to add various patterns to ggplot2 plots, including installation, basic usage, and customizing pattern parameters.
2026-05-22   schedule 2 min 46 s  
Understanding the Z-Algorithm for Efficient String Matching
A deep dive into the Z-algorithm for linear-time string matching, focusing on the mirroring strategy.
2026-05-22   schedule 3 min 44 s