I believe something like: scatter.smooth(est.prob, as.numeric(y == "level of interest"))
would be close. You may want to use a larger span than default. Andy From: abbas tavassoli > > Hi, > I have a binary variable and corresponding predicted > probability (using > logistic regression on some explanatoey variables); > I want to check that the model is well-calibrated using a > calibration plot. > how can I have the calibration plot for my data? > thanks. > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > Notice: This e-mail message, together with any attachme...{{dropped:12}} ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.