I haven't found much call to mess with this, but I think the built-in "glm" function could do it. You might have to reformulate the inputs to outcome/observation (ratio) and outcome+observation (weight) to get glm to accept it [1]... but I am not sure. What I am somewhat more sure of is that your description sounds an awful lot like a q-q plot which is one of the standard outputs when you plot a regression model.

[1] https://stats.stackexchange.com/questions/322038/input-format-for-binomial-glm-in-r


On Fri, 25 Jan 2019, greg holly wrote:

Hi Dear all;

I have binomially distributed data (a small portion is given below) and I
would like to create a distribution plot for positive deviance with
"Probability of results" at Y axis and "percentage of outcome" at the
x-axis. I wondered anyone knows the name of R  library for this.

Regards,

Greg

provider outcome observation
1               14            27
2                11           33
3                9             17

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnew...@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to