I am working my way through linear models in matrix form using mainly Brown (2014) Linear Models in Matrix Form. The book presents a schematic representation of observed and fitted values in a linear regression model (a visualization I've often seen for linear regression) (copied from Brown 2014, p. 49):

Fig. 2.2. From Brown (2014) Linear Models in Matrix Form

While I understand the logic of this visualization, I wonder what the corresponding visualization is for generalized linear models when (i) the response variable is categorical (e.g. binary/ordinal), (ii) the response and predictors are categorical, (iii) there are multiple predictors. I have not seen such visualizations and find these as nice aids to grasp the intuition of regression models. Could anyone point me towards references for this?

  • 2
    $\begingroup$ Arthur Charpentier created some similar graphics for different models (e.g. Poisson) on his blog. $\endgroup$ May 21, 2020 at 11:15
  • 2
    $\begingroup$ example on logistic regression (binary outcome) can be found here $\endgroup$
    – Haitao Du
    May 21, 2020 at 11:29


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.