Hi
 
Say I have some data, two columns in a table being a binary outcome plus
a predictor and I want to plot a graph that shows the percentage
positives of the binary outcome within bands of the predictor, e.g.
 
 
Outcome           predictor
 
0                      1
1                      2
1                      2
0                      3          
0                      3
0                      2          
1                      3
1                      4
1                      4
0                      4
0                      4
0                      4
etc
 
In this case there are 4 cases in the band 1 - 2 of the predictor, 2 of
them are true so the percent is 50% and there are 7 cases in the band 3
- 4, 3 of which are true making the percentage 43% .
 
Is there some function in R that will sum these outcomes by bands of
predictor and produce a one by two  data set with the percentages in one
column and the ordered bands in the other, or alternately is there some
sort of special plot.???? that does it all for you?
 
Thanks
 
Stephen
 
 

	[[alternative HTML version deleted]]


