[R] plot positive predictive values

r2L ruserman at gmail.com
Tue Sep 8 12:19:30 CEST 2009


Hi,

Thanks for the hint! Of course, you are correct.

Here is a link with some background for others with tired heads:
http://luna.cas.usf.edu/~mbrannic/files/regression/Logistic.html



On Sep 4, 1:15 pm, "ONKELINX, Thierry" <Thierry.ONKEL... at inbo.be>
wrote:
> You could use a glm with the binomial family to model that.
>
> A solution with ggplot2
>
> library(ggplot2)
> ggplot(dataset, aes(x = x, y = y, weights = n)) +
>         geom_smooth(method = "glm", family = binomial)
>         geom_point()
>
> ------------------------------------------------------------------------
> ----
> ir. Thierry Onkelinx
> Instituut voor natuur- en bosonderzoek / Research Institute for Nature
> and Forest
> Cel biometrie, methodologie en kwaliteitszorg / Section biometrics,
> methodology and quality assurance
> Gaverstraat 4
> 9500 Geraardsbergen
> Belgium
> tel. + 32 54/436 185
> Thierry.Onkel... at inbo.bewww.inbo.be
>




More information about the R-help mailing list