alg.BC | R Documentation |
Using Parametric Bootstrap to simulate a distribution and find a p-value for the test.
alg.BC(ns, ybars, s2, a, b, c, L)
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 |
Q: p_value for the two factor interaction test
#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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.