SimAnovaMV: Decomposing multivariate simulation results into ANOVA-based...

Description Usage Arguments Value See Also Examples

View source: R/SimAnovaMV.R

Description

This function is an extension of SimAnova, which takes an output object from a simulation, as well as a vector for the design factors and outcome measures. If there is only one design factor, then the result is a dataframe with rows pertaining to each outcome measure. If there is more than one design factor, this function automatically conducts a full-factorial design, and outputs a list with elements corresponding to each main and interaction effect.

Usage

1
SimAnovaMV(data, terms, responses)

Arguments

data

A data.frame object, specifically of class SimDesign.

terms

A character vector indicating the design factors to summarise.

responses

A character vector indicating the response variables produced in the simulation.

Value

A data.frame or list object.

See Also

SimAnova

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
data(Brown1974) # 3 design factors, 6 response variables
TypeI <- subset(Brown1974, var_ratio == 1)
Power <- subset(Brown1974, var_ratio != 1)
tvals <- c("distribution")
rvals <- c("F", "Jacknife", "Layard", "Levene", "W10", "W50")
SimAnovaMV(data = TypeI, terms = tvals, responses = rvals)
SimAnovaMV(data = Power, terms = tvals, responses = rvals)

data(tsimresults) # 3 design factors, 2 response variables
tvals <- c("group_size_ratio", "standard_deviation_ratio")
rvals <- c("lessthan.05.welch", "lessthan.05.independent")
SimAnovaMV(data = tsimresults, terms = tvals, responses = rvals)

## End(Not run)

mattsigal/SimDisplay documentation built on May 21, 2019, 1:25 p.m.