View source: R/fsp_and_power.R
calculate_fsp | R Documentation |
This function calculate False Split Proportion (FSP) of an achieved aggregation given the true aggregation.
calculate_fsp(theta_est, theta_true)
theta_est |
A vector of integers indicating the cluster to which each item is allocated by an achieved aggregation. |
theta_true |
A vector of integers indicating the cluster to which each item is allocated by the true aggregation. |
False Split Proportion.
v1 = c(1,1,2,2,2,3,3,3,3,4,4,4)
v2 = c(1,1,1,1,1,2,2,2,3,4,4,4)
calculate_fsp(v1, v2)
## 0.3333333
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.