# Example weights and results vectors
weights_vector <- c(1/3, 0.5, 1)
results_vector <- c(0, 1, 1)
# Exact test
result_exact <- pred_test(weights_vector, results_vector, test_type = 'exact')
result_exact
# Approximate test
result_approx <- pred_test(weights_vector, results_vector, test_type = 'approx')
result_approx
# Bootstrap test
result_bootstrap <- pred_test(weights_vector, results_vector, test_type = 'bootstrap')
result_bootstrap
Run the code above in your browser using DataLab