Skip to contents

Returns the results (thus far) of the rerandomization design search

Usage

resultsRerandomizationSearch(
  obj,
  include_assignments = FALSE,
  form = "one_zero"
)

Arguments

obj

The rerandomization_experimental_design object that is currently running the search

include_assignments

Do we include the assignments (takes time) and default is FALSE.

form

Which form should the assignments be in? The default is one_zero for 1/0's or pos_one_min_one for +1/-1's.

Author

Adam Kapelner

Examples

if (FALSE) { # \dontrun{
set.seed(1)
X = matrix(rnorm(20), nrow = 10)
obj = initRerandomizationExperimentalDesignObject(
  X,
  max_designs = 5,
  num_cores = 1,
  objective = "abs_sum_diff",
  obj_val_cutoff_to_include = Inf,
  start = TRUE,
  wait = TRUE,
  verbose = FALSE
)
res = resultsRerandomizationSearch(obj, include_assignments = TRUE, form = "one_zero")
dim(res$ending_indicTs)
} # }