Description Usage Arguments Details Value Author(s) Examples
This function selects elements whose absolute scaled values exceed a given threshold.
1 | 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.