Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/G.theo.multcomp.R

Performs pairwise comparisons after a global G-test for given probabilities.

1 | ```
G.theo.multcomp(x, p = rep(1/length(x), length(x)), p.method = "fdr")
``` |

`x` |
numeric vector (counts). |

`p` |
theoretical proportions. |

`p.method` |
method for p-values correction. See help of |

Since a G-test is an approximate test, an exact test is preferable when the number of individuals is small (200 is a reasonable minimum). See `multinomial.theo.multcomp`

in that case.

`method` |
name of the test. |

`data.name` |
a character string giving the name(s) of the data. |

`observed` |
observed counts. |

`expected` |
expected counts. |

`p.adjust.method` |
method for p-values correction. |

`statistic` |
statistics of each test. |

`p.value2` |
corrected p-values. |

`p.value` |
data frame of results. |

Maxime Herv<e9> <[email protected]>

`G.test`

, `multinomial.test`

, `multinomial.theo.multcomp`

1 2 3 4 | ```
counts <- c(49,30,63,59)
p.theo <- c(0.2,0.1,0.45,0.25)
G.test(counts,p=p.theo)
G.theo.multcomp(counts,p=p.theo)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.