age categories | false positive count | total count | proportion (FP/Total) % |
---|---|---|---|
40 - 45 | 25 | 100 | 25.0 |
45 - 50 | 25 | 68 | 36.8 |
50 - 55 | 50 | 250 | 20.0 |
55 - 60 | 82 | 317 | 25.9 |
I have this data frame on R. it shows the false positive counts and the total count within each respective age categories. I have also added a column with the calculated % of False positives / total count.
Essentially, I want to be able to plot this as a graph - which I can do.
graph <- ggplot(data = hi, aes(x = age_categories, y = prop)) + geom_bar(stat = "identity", fill = "light blue") + labs(x = "percentage", y = "Percentage of False Positives",
fill = NULL ,title = " False Positives by age categories")
But I am struggling to find the P values to show if there is any significant different in the false positive counts between each of the age categories.
So for e.g I want to see if there is a significant difference (P-value) between those between '40-45' and the other age categories.
Any help would be much appreciated!