initGreedyExperimentalDesignObject {GreedyExperimentalDesign}R Documentation

This method creates an object of type greedy_experimental_design and will immediately initiate a search through $1_T$ space.

Description

This method creates an object of type greedy_experimental_design and will immediately initiate a search through $1_T$ space.

Usage

initGreedyExperimentalDesignObject(X, max_designs = 10000,
  objective = "abs_sum_diff", wait = FALSE, start = TRUE,
  max_iters = Inf, semigreedy = FALSE, diagnostics = FALSE,
  num_cores = 1)

Arguments

X

The design matrix with $n$ rows (one for each subject) and $p$ columns (one for each measurement on the subject). This is the design matrix you wish to search for a more optimal design.

max_designs

The maximum number of designs to be returned. Default is 10,000. Make this large so you can search however long you wish as the search can be stopped at any time by using the stopSearch method

objective

The objective function to use when greedily searching design space. This is a string "abs_sum_diff" (default) or "mahal_dist."

wait

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

start

Should we start searching immediately (default is TRUE).

max_iters

Should we impose a maximum number of greedy switches? The default is Inf which a flag for “no limit.”

semigreedy

Should we use a fully greedy approach or the quicker semi-greedy approach? The default is FALSE corresponding to the fully greedy approach.

diagnostics

Returns diagnostic information about the iterations including (a) the initial starting vectors, the switches at every iteration and information about the objective function at every iteration (default is FALSE due to speed concerns).

num_cores

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

Value

An object of type greedy_experimental_design_search which can be further operated upon

Author(s)

Adam Kapelner

Examples

 ## Not run: 
	library(MASS)
	data(Boston)
 #pretend the Boston data was an experiment setting 
	#first pull out the covariates
 X = Boston[, 1 : 13] 
 #begin the greedy design search
	ged = initGreedyExperimentalDesignObject(X, 
		max_designs = 1000, num_cores = 3, objective = "abs_sum_diff")
	#wait
	ged
	
## End(Not run)

[Package GreedyExperimentalDesign version 1.2 Index]