Description Usage Arguments Details See Also Examples
View source: R/findRelativeElbow.R
Find a relative "elbow" in a eigenvalue or R^2 vector
1 | findRelativeElbow(.v, cumulative = FALSE, plotD2 = FALSE, ...)
|
.v |
a numeric vector containing eigenvalues or R-squared values. |
cumulative |
a boolean indicating whether or not |
plotD2 |
a boolean indicating whether or not the second derivative should be plotted |
... |
additional parameters to be passed to |
The function attempts to find the biggest relative
drop-off in variance for a set of principal components using a
vector of eigenvalues or individual R-squared statistics for
the principal components. In addition, this function plots a
horizontal line representing the average contribution of the
vector .v
.
1 2 3 4 5 | ## Example r-squared vector
r2Vec <- c(.2, .1, .65, .43, .21, .1, .07)
## Plot efficiency diagnostics
findRelativeElbow(r2Vec)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.