testHypotheses | R Documentation |
Convenience function for testing multiple hypotheses. E.g., for a two factor design, you could test the main effects of A and B plus the interaction of A and B. If using testHypothesis
you would need to call that function three times, but this function requires only one function call.
testHypotheses(prior, post, factors, testedFactors, dmFactors = testedFactors, contrastType = NULL, testFunction = testFunction_SDDR, usedFactorLevels = NULL, testName = testedFactors)
prior |
See |
post |
See |
factors |
See |
testedFactors |
Character vector (or list). Interactions should be indicated by putting colons between factor names. For example, the interaction of A and B is given by "A:B". The order of factor names does not matter. If a list, the elements should not be named. |
dmFactors |
Character vector (or list) of the same length as |
contrastType |
See |
testFunction |
See |
usedFactorLevels |
List of data frames. If provided, should be the same length as |
testName |
Character vector (or list). An optional name for the tests. If provided, should be the same length as |
A data.frame
with one test on each row.
## Not run: prior = getPrior() post = getPost() factors = data.frame(let = c('A', 'A', 'B', 'B'), num = c('1', '2', '1', '2')) # Test both main effects and the interaction testHypotheses(prior, post, factors, testedFactors = c('let', 'num', 'let:num')) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.