Learn R Programming

microclustr (version 0.1.0)

fdr_fun: Calculates FDR when ground truth is available

Description

Calculates FDR when ground truth is available

Usage

fdr_fun(z, id)

Arguments

z

Vector of cluster assignments

id

Vector of true cluster assignments (ground truth)

Value

FDR

Examples

Run this code
# NOT RUN {
truePartition <- c(50,50,50,50)
maxPartitionSize<- length(truePartition)
uniqueNumberRecords <- sum(truePartition)
id <- rep(1:uniqueNumberRecords, times=rep(1:maxPartitionSize, times=truePartition))
fdr_fun(z = truePartition, id)
# }

Run the code above in your browser using DataLab