calculate_fsp: Calculate False Split Proportion (FSP)

View source: R/fsp_and_power.R

calculate_fspR Documentation

Calculate False Split Proportion (FSP)

Description

This function calculate False Split Proportion (FSP) of an achieved aggregation given the true aggregation.

Usage

calculate_fsp(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

False Split Proportion.

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_fsp(v1, v2)
## 0.3333333

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