search for: spaceshuttle

Displaying 1 result from an estimated 1 matches for "spaceshuttle".

2013 Dec 17
1
ggplot2: stat_smooth for family=binomial with cbind(Y, N) formula
...th = 0)) + stat_smooth(method = "glm", family = binomial, formula = y ~ x, alpha = 0.2, size=2) But how can I specify the formula for stat_smooth when the response is cbind(successes, failures)? The equivalent with plot (minus the confidence band) for the example I want is: data("SpaceShuttle", package="vcd") > head(SpaceShuttle, 5) FlightNumber Temperature Pressure Fail nFailures Damage 1 1 66 50 no 0 0 2 2 70 50 yes 1 4 3 3 69 50 no 0 0 4...