koalaverse / sure

Surrogate residuals for cumulative link and general regression models in R
https://koalaverse.github.io/sure/index.html
9 stars 2 forks source link

Implement jittering for all supported CLMs #18

Closed bgreenwell closed 7 years ago

bgreenwell commented 7 years ago

Should be simple once we write extractors for the fitted probabilities: $$ R = S - E(S|X) = S - \sum_{i = 1}^J\left(j + 0.5\right)p\left(Y = j | X\right) $$