micomp | R Documentation |
Performs multiple independent comparisons of output observations.
micomp(
outputs,
ve_npcs,
comps,
concat = F,
centscal = "range",
lim_npcs = TRUE,
mnv_test = "Pillai",
...
)
outputs |
A vector with the labels of each output, or an integer with the number of outputs (in which case output labels will be assigned automatically). |
ve_npcs |
Percentage ( |
comps |
A list of lists, where each list contains information regarding an individual comparison. Each list can have one of two configurations:
|
concat |
Create an additional, concatenated output? Ignored for sublists
passed in the |
centscal |
Method for centering and scaling outputs if |
lim_npcs |
Limit number of principal components used for MANOVA to minimum number of observations per group? |
mnv_test |
The name of the test statistic to be used in MANOVA, as
described in |
... |
Options passed to |
An object of class micomp
, which is a two-dimensional
list of cmpoutput
objects. Rows are associated with individual
outputs, while columns are associated with separate comparisons.
# Create a micomp object from existing files and folders
dir_nl_ok <-
system.file("extdata", "nl_ok", package = "micompr")
dir_jex_ok <-
system.file("extdata", "j_ex_ok", package = "micompr")
dir_jex_noshuff <-
system.file("extdata", "j_ex_noshuff", package = "micompr")
dir_jex_diff <-
system.file("extdata", "j_ex_diff", package = "micompr")
files <- glob2rx("stats400v1*.tsv")
mic <- micomp(7, 0.8,
list(list(name = "NLOKvsJEXOK",
folders = c(dir_nl_ok, dir_jex_ok),
files = c(files, files),
lvls = c("NLOK", "JEXOK")),
list(name = "NLOKvsJEXNOSHUFF",
folders = c(dir_nl_ok, dir_jex_noshuff),
files = c(files, files),
lvls = c("NLOK", "JEXNOSHUFF")),
list(name = "NLOKvsJEXDIFF",
folders = c(dir_nl_ok, dir_jex_diff),
files = c(files, files),
lvls = c("NLOK", "JEXDIFF"))),
concat = TRUE)
# Create a micomp object from package datasets (i.e. grpoutputs objects)
# directly
mic <- micomp(c("o1", "o2", "o3", "o4"), 0.9,
list(list(name = "NLOKvsJEXOK", grpout = pphpc_ok),
list(name = "NLOKvsJEXNOSHUFF", grpout = pphpc_noshuff),
list(name = "NLOKvsJEXDIFF", grpout = pphpc_diff)))
# Create a micomp object using manually inserted data
mic <- micomp(6, 0.5, list(
list(name = "NLOKvsJEXOK",
grpout = list(data = pphpc_ok$data,
obs_lvls = pphpc_ok$obs_lvls)),
list(name = "NLOKvsJEXNOSHUFF",
grpout = list(data = pphpc_noshuff$data,
obs_lvls = pphpc_noshuff$obs_lvls)),
list(name = "NLOKvsJEXDIFF",
grpout = list(data = pphpc_diff$data,
obs_lvls = pphpc_diff$obs_lvls))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.