selectContrib {MineICA} | R Documentation |
This function selects elements whose absolute scaled values exceed a given threshold.
selectContrib(object, cutoff, level, ...)
object |
Either an |
cutoff |
The threshold according to which the elements will be selected. Must be either of length 1 and the same treshold is applied to all components, or of length equal to the number of components in order to use a specific threshold for each component. |
level |
The level of the selection: either |
... |
... |
Each vector is first scaled and then only elements with
an absolute scaled value higher than cutoff
are
kept.
A list of projections restricted to the elements that are
higher than cutoff
.
Anne Biton
## Not run: ## load an example of icaSet data(icaSetCarbayo) ##### ========= #### When arg 'object' is an IcaSet object ##### ========= ## select contributing genes selectContrib(object=icaSetCarbayo, cutoff=3, level="genes") ## select contributing features selectContrib(object=icaSetCarbayo, cutoff=3, level="features") ##### ========= #### When arg 'object' is a list ##### ========= c1 <- rnorm(100); names(c1) <- 100:199 c2 <- rnorm(100); names(c2) <- 1:99 selectContrib(object=list(c1,c2), cutoff= 0.5) ## select contributing features contribFlist <- selectContrib(Slist(icaSetCarbayo), 3) ## select contributing genes contribGlist <- selectContrib(SlistByGene(icaSetCarbayo), 3) ## End(Not run)