calculate_power: Calculate Power

View source: R/fsp_and_power.R

calculate_powerR Documentation

Calculate Power

Description

This function calculate power of an achieved aggregation given the true aggregation.

Usage

calculate_power(theta_est, theta_true)

Arguments

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.

Value

Power.

Examples

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

simone0628/hat documentation built on June 1, 2024, 9 a.m.