I want to compare two datasets at differet bins. My input data is something like this:
dataIn <- read.table(text =
"bin_slots val_cases val_controls
A 0.075 0.05
A 0.252 0.276
A 0.338 0.41
A 0.911 0.983
A 0.912 0.809
A 0.965 0.917
A 1 1
A 1 1
A 0 0
A 1 0.983
A 0.398 0.681
A 0.606 0.431
B 0.58 0.608
B 0.729 0.773
B 0.871 0.879
B 1 1
B 0.297 0.282
B 0.673 0.737
B 0.807 0.803
B 0.838 0.824
B 0.633 0.658"
, header = TRUE)
Using the above dataset i want to compare val_cases and val_controls for A and B and so on...Thus the output I would like to get can be like this:
bin_slots p_value
A 0.416336774
B 0.066616655
Thanks a lot. Best wishes, Meraj