alg.BC {pbANOVA}R Documentation

test two factor interaction

Description

Using Parametric Bootstrap to simulate a distribution and find a p-value for the test.

Usage

alg.BC(ns, ybars, s2, a, b, c, L)

Arguments

ns

sample size for each group

ybars

sample mean for each group

s2

sample variance for each group

a

Number of levels for factor A

b

Number of levels for factor B

c

Number of levels for factor C

L

Number of simulated values for the distribution

Value

Q: p_value for the two factor interaction test

Examples


#See Q.ABmc
# note that the ns, ybars and s2 vectors need to be in the order reflecting subscripts

# 111, 112, 113...., 121, 122, 123, ... , ... abc. The summarySE function from the package

# Rmisc is handy for doing this.  The order the user specifies the "groupvars" argument will

# put the factors in order A, B, C.  This order will matter when testing different two-way

# interaction terms and different main effects.  See comments in the potato example.


[Package pbANOVA version 0.1.0 Index]