...
24 September 2023

Understanding R Formulas

by markolenik

Why is the formula x ~ (y + z)^2 equivalent to x ~ y*z? Here are the exact transformation steps: