samedi 26 août 2017

Multiple binomial test fro two tables (success and total)

Multiple binomial test from success and total table.

binom.test(x, n, p = 0.5, alternative = c("two.sided", "less", "greater"), conf.level = 0.95)

I am really a newbie to this list and R. So please let me know if this inappropriate. I am trying to have a large number of binomial tests made in one shot. From raw data I have managed to create two tables (same number of rows and columns): one table (s) with class code and successes (right answer in a students exam) in different questions (one each column), so these are x-values of the binomial test and one table (t) with with class code the totals number of valid attempts for each question, so these are the p-values of the binomial test So basically I have in the same position in the two tables the two input values for the binomial test. I also have a table (one row) with the value of the probability (not 0.5!).

What is a good way to obtain a table with a true (1)/ false (0) value for hypothesis rejection for all these tests? Thanks a lot. Mirko

Table would look like (data just example)

Table s Group1 11 12 13 41 42 23 24 Group2 9 11 11 39 50 29 32 Group3 14 15 18 36 44 32 21

Table t Group1 45 44 45 44 45 43 45 Group2 32 33 31 33 31 33 33 Group3 45 46 48 44 54 43 23

P Vector 0.31 0.42 0.5 0.55 0.45 0.34 0.37

Aucun commentaire:

Enregistrer un commentaire