meanAdjAgree | R Documentation |
This is the main function of var.relations function.
meanAdjAgree(
trees,
variables,
allvariables,
candidates,
t,
s.a,
select.var,
num.threads = NULL
)
trees |
list of trees created by getTreeranger, addLayer and addSurrogate. |
variables |
vector of variable names. |
allvariables |
vector of all variable names (strings) |
candidates |
vector of variable names (strings) that are candidates to be related to the variables (has to be contained in allvariables) |
t |
variable to calculate threshold. Default is 3. |
s.a |
average number of surrogate variables (ideally calculated by count.surrogates function). |
select.var |
set False if only relations should be calculated and no related variables should be selected. |
num.threads |
number of threads used for parallel execution. Default is number of CPUs available. |
a list containing:
variables: the variables to which relations are investigated
surr.res: matrix with mean adjusted agreement values and variables investigated in rows and candidate variables in columns
threshold: the threshold used to create surr.var from surr.res
surr.var: binary matrix showing if the variables are related (1) or non-related (0) with variables in rows and candidates in columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.