test.nb.inar1 {spass}R Documentation

Testing Hypotheses in NB-INAR(1) model

Description

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

Usage

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 \lambda_T/\lambda_C = h0 against the alternative \lambda_T/\lambda_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

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)


[Package spass version 1.3 Index]