Description Usage Arguments Value Examples
Runs opt_mid over multiple groups
1 2 | opt_mid_multi(dist_mat, groups = unique(colnames(dist_mat)), params = c(0,
1))
|
dist_mat |
A [0, 1] bounded square distance matrix with column names matching groups. |
groups |
A character vector specifying groups of interest. Defualt is all groups. |
params |
A vector containing intitial values of cut_off and delta (respectively) passed optim function for parameter optimization. |
tibble containing a row for each input group with columns: focal_group - the input group cut_off - the optimized cutoff value that most effectively clusters entities with the same label while excluding entities with alternative labels. delta - the optimized cutoff shrinkage parameter that ensures smaller cutoff values are favored when a range of cutoff values results in a similar mid_point value optim_value - the optimized value of (cut_off ^ delta + (prop grouped - prop exluded)^2), which determines parameter values. mid_point - the compromise between excluding all alternative entities from the focal group while capturing all the members of the focal group, as derived from the optimized cutoff value. A value of 1 means the focal group is perfectly separated from all other groups. converge - convergence dianostic from optim function. If converge != 0, try different initial values. Increasing delta is a good first choice.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.