doPerm | R Documentation |
doPerm performs permutation-based sampling and runs the CoreAlg function iteratively.
doPerm(perm, X, Y, absolute, abs_method)
perm |
Number of permutations to perform. |
X |
Input matrix or data frame containing the predictor variables. |
Y |
Numeric vector containing the response variable. |
absolute |
Logical value indicating whether to use absolute space or relative space for the weights. |
abs_method |
String indicating the method to calculate the weights in absolute space. Can be either 'sig.score' or 'no.sumto1'. |
A list containing the distribution of correlation coefficients from the permutations.
X <- matrix(rnorm(100), nrow = 10)
y <- rnorm(10)
result <- doPerm(1000, X, Y, absolute = FALSE, abs_method = "sig.score")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.