Climate change is expected to increase lake productivity and algal blooms and cause regime shifts, particularly in human-impacted ecosystems. However, evidence is lacking for causal relationships between climate and lake productivity or for the nonlinear dynamics needed to demonstrate regime shifts. We modeled causal effects of climate on lake chlorophyll over 34 years in 24,452 US lakes. This repository contains the R and Python code used in this analysis.