Description Usage Arguments Value Examples
Extract a value for optimal number of bands.
1 2 | getOptimalK(yVar, xVar, eps = 1.05, distanceMethod = "euclidean",
clustMethod = "ward.D2")
|
yVar |
A logical vector of dependent variable. |
xVar |
A factor or logical vector of independent variable. |
eps |
A number from 1 to 2 which manage how many cluster function returns. |
distanceMethod |
A character, check ?dist. |
clustMethod |
A character, check ?hclust. |
A number of optimal bands.
1 2 3 4 | data(lendclub)
getOptimalK(lendclub$loan_status, lendclub$purpose)
getOptimalK(lendclub$loan_status, lendclub$purpose, eps = 1.01)
getOptimalK(lendclub$loan_status, lendclub$purpose, eps = 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.