random.factors | R Documentation |
From a given design, extract contained random or fixed factors as a list.
random.factors(design, include_interactions = TRUE)
fixed.factors(design)
design |
The factor design to check. |
include_interactions |
Should random factor interactions be included? |
A list of factors that are either fixed or random.
random.factors()
: Return fixed factors
des <- fixed.factor("Factor1", c("1A","1B")) +
fixed.factor("Factor2", c("2A","2B")) +
random.factor("Subject", c("Factor1"))
random.factors(des)
fixed.factors(des)
stopifnot(setequal(names(random.factors(des)), c("Subject")))
stopifnot(setequal(names(fixed.factors(des)), c("Factor1","Factor2")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.