
fn_coincide
fn_coincide.RdThe coincidence between microscopy classification and GSI is analyzed. The count is based on the number of pairs that coincide (C) and the number of pairs that are misqualified: mature by immature (MI) and immature by mature (IM).
Arguments
- N_Phase
A numerical value indicating the number of factor levels
- df
A data frame with the values of each individual (row) by variables (columns)
- Icut
A numerical value is the threshold value to separate into two groups
- Coincide
A table filled with NA, with N+1 rows, one for each factor level plus 1 for the total, and four columns, the first with the name of factor levels and the rest for the categories: C, MI and IM
Value
Return a filled table with the number of coincidences and discrepancies by factor levels and the total (rows) by category (columns): Coincidence (C), mature by immature (MI) and immature by mature (IM).
Examples
if (FALSE) {
N_Phase <- 6
df <- tmp
Icut <- 2
Coincide <- data.frame(matrix(NA, ncol = 4, nrow = as.integer(N_Phase+1)))
ejemplo = fn_coincide(N_Phase, df, Icut, Coincide)
}