I was reading a discussion on whether or not use aov() or lm(), and it was suggested that lm() on R does not assume that the variables are centered.

So, the discussion has a few examples on how to center continuous variables and grouping variables with 2 levels.

However, how can I center when I have more levels on my grouping variables ? Like 5 leves, for example.

(https://garthtarr.github.io/meatR/lm2-general-linear-models.html#two_factor_models,_with_interactions)

More Alexandre Ribeiro da Silva's questions See All
Similar questions and discussions