Description Usage Arguments Details Value Source See Also Examples
View source: R/test.nb.inar1.r
test.nb.inar1
tests hypotheses for rate ratios of two groups in an NB-INAR(1) model
1 | test.nb.inar1(dataC, dataE, h0 = 1)
|
dataC |
a matrix or data frame containing count data from the control group. Columns correspond to time points, rows to observations. |
dataE |
a matrix or data frame containing count data from the experiment group. Columns correspond to time points, rows to observations. |
h0 |
the value against which h is tested, see 'Details'. |
the function test.nb.inar1
tests for the null hypothesis λ_T/λ_C = h0 against the alternative λ_T/λ_C \neq h_0.
For attaining estimates, method of moments estimators are used.
test.nb.inar1
returns effect size, standard error, Z-statistic and p-value attained through standard normal approximation.
test.nb.inar1
uses code contributed by Thomas Asendorf.
rnbinom.inar1
for information on the NB-INAR(1) model, n.nb.inar1
for calculating
initial sample size required when performing inference, fit.nb.inar1
for calculating
initial parameters required when performing sample size estimation
1 2 3 4 5 | set.seed(8)
groupE<-rnbinom.inar1(n=1000, size=0.6, mu=2, rho=0.8, tp=6)
groupC<-rnbinom.inar1(n=1000, size=0.6, mu=2, rho=0.8, tp=6)
test.nb.inar1(dataC=groupC, dataE=groupE, h0=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.