# NOT RUN {
# To run the following example, Gurobi must be installed.
R_t = encouraged_clusters$aggregated_outcome
R_c = control_clusters$aggregated_outcome
d_t = encouraged_clusters$aggregated_treatment
d_c = control_clusters$aggregated_treatment
num_t = encouraged_clusters$number_units
num_c = control_clusters$number_units
# Test at level 0.05 if the ACER is equal
# to 0.2. Assume the minimum compliance rate across
# K clusters is at least 0.2. Set verbose = FALSE
# to suppress the output.
res = ACER(num_t, num_c, R_t, R_c, d_t, d_c,
lambda = 0.2, alpha = 0.05, kappa = 0.2,
verbose = FALSE)
# The test is rejected
res$Reject
# }
Run the code above in your browser using DataLab