View source: R/factorial_summary.R
| factorial_summary | R Documentation |
Computes an analysis of variance for a set of factors in a full factorial experimental design. For each term order within the design (i.e., main effects, two-way interactions, three-way interactions), the total sum of squares attributable to each factor is computed. For terms beyond order
Optionally, also computes the total sum of squares for each order (across all factors) and the total sum of squares attributable to each factor.
factorial_summary(
data,
y,
factors,
sum_orders = TRUE,
include_total = TRUE,
check_balance = TRUE
)
data |
data.frame or tibble containing simulation results. Each row should correspond to a unique set of parameter values. |
y |
character string corresponding to the outcome variable in
|
factors |
character vector containing the names of two or more variables
in |
sum_orders |
logical indicating whether to compute the total sum of squares
attributable to each factor, with a default of |
include_total |
logical indicating whether to compute the total sum of squares
for each term order (across all factors), with a default of |
check_balance |
logical indicating whether to check that the experimental design is balanced, with a default of |
A data.frame
data("Chen_Pusto")
dat <- subset(Chen_Pusto, method == "PET-PEESE")
factorial_summary(dat, "bias", c("k","mu","tau","cor_mu","wts"))
factorial_summary(dat, "bias", c("k","mu","tau","wts"), include_total = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.