https://juliastats.org/StatsModels.jl/latest/contrasts/#Further-details says
A categorical variable in a term aliases the term that remains when that variable is dropped.
I can't figure out what this means, even after looking at the examples following that quote. Are there some words missing?
For example:
- In
~a+b+c referring to the term that remains after dropping a is meaningless since there are 2.
- So does
a alias both b and c in that case?
- Which seems to mean everything aliases everything, a not particularly helpful concept.
- The first example says the sole variable
a aliases the intercept 1. But if there is no explicit 1 then what? (A bit further down it says if y~0+a then a aliases nothing. But what if the intercept is implicit?)
- "Linear Dependence" or "not full rank" at least mean something to me, and seem in the same ballpark. But the discussion clearly intends aliasing to occur even absent linear dependence.
- My immediate association with alias in the context of computers is 2 variables referring to overlapping memory. That's clearly not the intended meaning here.
- In
~a&b + a&b&c the first expression a&b is completely redundant. It is unclear how that's handled by StatsModels or how it relates to the discussion of aliases.
- Handling of
~a&b + a&c also unclear.
- But since I couldn't even understand a simple main effects model in 1., it's unsurprising I don't understand interactions.
https://juliastats.org/StatsModels.jl/latest/contrasts/#Further-details says
I can't figure out what this means, even after looking at the examples following that quote. Are there some words missing?
For example:
~a+b+creferring to the term that remains after droppingais meaningless since there are 2.aalias bothbandcin that case?aaliases the intercept1. But if there is no explicit1then what? (A bit further down it says ify~0+athenaaliases nothing. But what if the intercept is implicit?)~a&b + a&b&cthe first expressiona&bis completely redundant. It is unclear how that's handled byStatsModelsor how it relates to the discussion of aliases.~a&b + a&calso unclear.