# Calibration curve for pooled logistic regression

**URL:** <https://discourse.datamethods.org/t/calibration-curve-for-pooled-logistic-regression/2382>\
**Category:** modeling strategy\
**Tags:** logistic-regression\
**Created:** [September 28, 2019, 9:43pm UTC](https://discourse.datamethods.org/t/calibration-curve-for-pooled-logistic-regression/2382 "2019-09-28T21:43:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hanowell](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/hanowell/32/1055_2.png) [@hanowell](https://discourse.datamethods.org/u/hanowell)\
**Post date:** [September 28, 2019, 9:43pm UTC](https://discourse.datamethods.org/t/calibration-curve-for-pooled-logistic-regression/2382/1 "2019-09-28T21:43:56Z")

</div>

Suppose I am fitting a logistic regression to the outcome `cbind(successes, failures)` rather than to the outcome y \in (0,1) (i.e., I’m doing pooled logistic regression) to account for differential exposure within an observation period. How do I draw smoothed calibration curves for the fitted model? Do I plot the smoothed sum of fractional periods as a function of predicted probabilities rather than the smoothed sum of events?
