avehtari / ROS-Examples

Regression and other stories R examples
https://avehtari.github.io/ROS-Examples/
325 stars 256 forks source link

Section 15.1 page 263 link function g() errors #135

Open shiraamitchell opened 11 months ago

shiraamitchell commented 11 months ago

Minor point: sometimes you write $g(u)$ and sometimes $g^{-1}(u)$ with the same letter $u$. Later in Section 15.2 page 267, $u$ is the exposure.

More importantly, you say " $g(u) = \exp(u)$ transforms a continuous linear predictor $X_i \beta$ to a positive $\hat{y}_i$", which is true, but a few lines above you defined $g()$ as the link function $\hat{y} = g^{-1}(X\beta)$. Then top of page 264 you say " $g$ is the inverse logit".

(It would also help in this section to define $\hat{y}$ because you define all other terms, is it meant to be $E[y|X]$ ?)

Thanks ! Shira

andrewgelman commented 9 months ago

Fixed; thanks.