View source: R/fsp_and_power.R
calculate_power | R Documentation |
This function calculate power of an achieved aggregation given the true aggregation.
calculate_power(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. |
Power.
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_power(v1, v2)
## 0.6666667
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.