This function looks at the features that make up individual PCA components. It returns those features that contribute more than others to these componets (according to the weight of the feature compared to the median and IQR interval)
1 2 | MPsuggestTopFeatures(x, ncomp = function(y) { 1 + sqrt(y) },
iqrfactor = function(y) { 0.5 + log(y) })
|
x |
dataset or prcomp object |
ncomp |
function, integer, or numeric. If integer, number of principal components to consider. If number less than 1, fraction of components to consider. If function, a transformation on the number of features that returns an integer. |
iqrfactor |
numeric. threshold to consider a feature in a PC as worthy of selection |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.