Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RFSurrogates
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AG Seifert
RFSurrogates
Commits
97f0e591
Verified
Commit
97f0e591
authored
1 year ago
by
Gärber, Florian
Browse files
Options
Downloads
Patches
Plain Diff
fix: Remove param `t` from `MFI`, it is never used
parent
3e144bba
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
R/MutualForestImpact.R
+8
-4
8 additions, 4 deletions
R/MutualForestImpact.R
R/meanAdjAgree.R
+1
-1
1 addition, 1 deletion
R/meanAdjAgree.R
with
9 additions
and
5 deletions
R/MutualForestImpact.R
+
8
−
4
View file @
97f0e591
#' MFI Shortcut
#' Mutual Forest Impact (Corrected Mean Adjusted Agreement).
#'
#' This method corrects the mean adjusted agreement by a permutation approach
#' and generates the relation parameter mutual forest impact.
#' Subsequently p-values are determined and related variables are selected.
#'
#' @inheritParams RandomForestSurrogates
#' @inheritDotParams RandomForestSurrogates
#' @param variables Vector of variable names for **which related variables should be searched**.
#' @param candidates Vector of variable names that **are candidates to be related to the variables**.
#' @param t Used to calculate threshold. (Default: 5)
#'
#' @returns A [`MutualForestImpact`] list object.
#' * `REL`: The [`MeanAdjustedAgreement`] object.
...
...
@@ -28,7 +31,6 @@ MFI <- function(
variables
,
candidates
,
num.threads
=
1
,
t
=
5
,
...
)
{
rels
<-
lapply
(
list
(
norm
=
FALSE
,
perm
=
TRUE
),
function
(
permutate
)
{
...
...
@@ -38,7 +40,9 @@ MFI <- function(
permutate
=
permutate
,
...
),
related
=
FALSE
,
t
=
t
,
num.threads
=
num.threads
# Relations are not calculated, leaving `t` unused.
related
=
FALSE
,
t
=
NA_integer_
,
num.threads
=
num.threads
)
})
...
...
This diff is collapsed.
Click to expand it.
R/meanAdjAgree.R
+
1
−
1
View file @
97f0e591
...
...
@@ -6,7 +6,7 @@
#' @param variables vector of variable names.
#' @param allvariables vector of all variable names (strings)
#' @param candidates vector of variable names (strings) that are candidates to be related to the variables (has to be contained in allvariables)
#' @param t variable to calculate threshold. Default is 3.
#' @param t variable to calculate threshold. Default is 3.
Used if `select.var = TRUE`.
#' @param s.a average number of surrogate variables (ideally calculated by count.surrogates function).
#' @param select.var set False if only relations should be calculated and no related variables should be selected.
#' @param num.threads number of threads used for parallel execution. Default is number of CPUs available.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment