Generation

generate functionMon, 27 Mar 2023

A linear regression to explain canine from age, quadratic, and with a sex factor

fit <- lm(weight ~ age + I(age^2) + sex, data = dogs)

Want to kickstart your project?Use the new AI Studio to create your code