Combine prediction tables
combine_prediction_tables.Rd
Combines multiple prediction tables (e.g., from different models or regions) into a single table. Supports weighted combination and collapsing regions.
Examples
# Create example prediction tables
observed = factor(sample(letters[1:2], 10, replace = TRUE))
predtab1 <- data.frame(.rownum = 1:10,
roinum = rep(1, 10),
observed = observed,
prob_A = runif(10),
prob_B = runif(10))
predtab2 <- data.frame(.rownum = 1:10,
roinum = rep(2, 10),
observed = observed,
prob_A = runif(10),
prob_B = runif(10))
# Combine the tables
combined_table <- combine_prediction_tables(list(predtab1, predtab2))
#> Error in assert_that(length(predtabs) == length(wts)): could not find function "assert_that"