runRDA {MEAL} | R Documentation |
Perform RDA calculation for a AnalysisRegionResults
. Feature values will
be considered the matrix X and phenotypes the matrix Y. Adjusting for covariates
is done using a model matrix passed in covarsmodel.
runRDA(set, model, num_vars = ncol(model), range, betas = FALSE, resultSet = TRUE, num_permutations = 10000)
set |
|
model |
Model matrix or formula to get model matrix from |
num_vars |
Numeric with the number of variables in the matrix for which the analysis will be performed. Compulsory if equation is not null. |
range |
|
betas |
If |
resultSet |
Should results be encapsulated in a |
num_permutations |
Numeric with the number of permutations run to compute the p-value. (Default: 1e4) |
Object of class rda
or resultSet
if (require(minfiData)){ set <- ratioConvert(mapToGenome(MsetEx[1:10,])) model <- model.matrix(~set$age) rda <- runRDA(set, model) rda }