initBinaryMatchExperimentalDesignSearch: Begin a Binary Match Search

View source: R/binary_match_search.R

initBinaryMatchExperimentalDesignSearchR Documentation

Begin a Binary Match Search

Description

This method creates an object of type pairwise_matching_experimental_design_search and will immediately initiate a search through $1_T$ space for pairwise match designs based on the structure computed in the function computeBinaryMatchStructure. For debugging, you can use set the seed parameter and num_cores = 1 to be assured of deterministic output.

Usage

initBinaryMatchExperimentalDesignSearch(
  binary_match_structure,
  max_designs = 1000,
  wait = FALSE,
  start = TRUE,
  num_cores = 1,
  seed = NULL,
  prop_flips = 1
)

Arguments

binary_match_structure

The binary_experimental_design object where the pairs are computed.

max_designs

How many random allocation vectors you wish to return. The default is 1000.

wait

Should the R terminal hang until all max_designs vectors are found? The default is FALSE.

start

Should we start searching immediately (default is TRUE).

num_cores

The number of CPU cores you wish to use during the search. The default is 1.

seed

The set to set for deterministic output. This should only be set if num_cores = 1 otherwise the output will not be deterministic. Default is NULL for no seed set.

prop_flips

Proportion of flips. Default is all. Lower for more correlated assignments (useful for research only).

Author(s)

Adam Kapelner


GreedyExperimentalDesign documentation built on July 26, 2023, 5:48 p.m.