Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 16420

Pairwise comparison of proportion with R

$
0
0

I am new to R. So here is my problem, I would like to perform a pairwise comparison of proportion. In my data, I have three sessions and time slots per session. I added the count per time slot knowing that smple size for M1 session = 181, M2 = 67 and M3 = 106.I want to compare the proportion of each session, per time slots. Like for time slot 18h-19h I have p-value from M1vsM2 , M2 vs M3 and M1 vs M3.

data <- tribble(  ~Horaire, ~SessionM1, ~NbM1, ~SessionM2, ~NbM2, ~SessionM3, ~NbM3,"18h-19h","M1", 6, "M2", 7, "M3", 6,"19h-20h","M1", 6, "M2", 10, "M3", 17,"20h-21h","M1", 14, "M2", 10, "M3", 16,"21h-22h","M1", 23, "M2", 5, "M3", 9,"22h-23h","M1", 15, "M2", 9, "M3", 4,"23h-00h","M1", 19, "M2", 4, "M3", 6,"00h-01h","M1", 19, "M2", 5, "M3", 10,"01h-02h","M1", 21, "M2", 3, "M3", 7,"02h-03h","M1", 8, "M2", 5, "M3", 7,"03h-04h","M1", 15, "M2", 4, "M3", 10,"04h-05h","M1", 15, "M2", 4, "M3", 9)

PS: I edited the data.

Can someone help, please? Thanks

I expect to obtain p-values for each combination of sessions within each time slot. Thanks


Viewing all articles
Browse latest Browse all 16420

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>