nullTest | R Documentation |
Simulates data sets under the null-hypothesis, H_0: theta=0. This corresponds to an ordinary multinomial model without any overdispersion. Based on the returned data frame simulated p-values may be computed.
nullTest(data, m=1000, prec=6)
data |
A matrix or table with counts. Rows represent subpopulations and columns the different categories of the data. Zero rows or columns are automaticly removed. |
m |
Number of simulated data tables. |
prec |
The tolerance of the iterations. Corresponds to
epsilon=1e-prec in |
Returns a data frame with theta estimates and log-likelihood values.
dirmult
data(us) ## Not run: nullTest(us[[1]],m=50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.