test.nb.inar1: Testing Hypotheses in NB-INAR(1) model

Description Usage Arguments Details Value Source See Also Examples

View source: R/test.nb.inar1.r

Description

test.nb.inar1 tests hypotheses for rate ratios of two groups in an NB-INAR(1) model

Usage

1
test.nb.inar1(dataC, dataE, h0 = 1)

Arguments

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'.

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.

Value

test.nb.inar1 returns effect size, standard error, Z-statistic and p-value attained through standard normal approximation.

Source

test.nb.inar1 uses code contributed by Thomas Asendorf.

See Also

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

Examples

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)

spass documentation built on Jan. 13, 2021, 7:57 p.m.

Related to test.nb.inar1 in spass...