Performs Gore's test. The null hypothesis H0:θi=θj(i=j) is tested against the alternative HA:θi=θj, with at least one inequality beeing strict.
goreTest(y, groups, blocks)
Arguments
y: a numeric vector of data values.
groups: a vector or factor object giving the group for the corresponding elements of "y".
blocks: a vector or factor object giving the group for the corresponding elements of "y".
Returns
A list with class "htest" containing the following components:
method: a character string indicating what type of test was performed.
data.name: a character string giving the name(s) of the data.
statistic: the estimated quantile of the test statistic.
p.value: the p-value for the test.
parameter: the parameters of the test statistic, if any.
alternative: a character string describing the alternative hypothesis.
estimates: the estimates, if any.
null.value: the estimate under the null hypothesis, if any.
Details
The function has implemented Gore's test for testing main effects in unbalanced CRB designs, i.e. there are one ore more observations per cell. The statistic is assymptotically chi-squared distributed.