compute_objective_val_plus_one_min_one_enc: Returns the objective value given a design vector as well an...

Description Usage Arguments Value Author(s)

View source: R/shared.R

Description

Returns the objective value given a design vector as well an an objective function. This is code duplication since this is implemented within Java. This is only to be run if...

Usage

1
2
3
4
5
6
compute_objective_val_plus_one_min_one_enc(
  X,
  indic_T,
  objective = "abs_sum_diff",
  inv_cov_X = NULL
)

Arguments

X

The n x p design matrix

indic_T

The n-length binary allocation vector

objective

The objective function to use. Default is abs_sum_diff.

inv_cov_X

Optional: the inverse sample variance covariance matrix. Use this argument if you will be doing many calculations since passing this in will cache this data.

Value

A vector of computed objective values.

Author(s)

Adam Kapelner


OptimalRerandExpDesigns documentation built on Jan. 28, 2021, 5:06 p.m.