lpSetupBound: Configure LP environment for obtaining the bounds

Description Usage Arguments Value

View source: R/lp.R

Description

This function sets up the LP model so that the bounds can be obtained. The LP model must be passed as an environment variable, under the entry $model. See lpSetup.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
lpSetupBound(
  env,
  g0,
  g1,
  sset,
  criterion.tol,
  criterion.min,
  solver,
  setup = TRUE
)

Arguments

env

the environment containing the LP model.

g0

set of expectations for each terms of the MTR for the control group.

g1

set of expectations for each terms of the MTR for the control group.

sset

a list containing the point estimates and gamma components associated with each element in the S-set. This object is only used to determine the names of terms. If it is no submitted, then no names are provided to the solution vector.

criterion.tol

additional multiplicative factor for how much more the solution is permitted to violate observational equivalence of the IV-like estimands, i.e. 1 + criterion.tol will multiply criterion.min directly.

criterion.min

minimum criterion, i.e. minimum deviation from observational equivalence while satisfying shape constraints.

solver

string, name of the package used to solve the LP problem.

setup

boolean. If TRUE, the function will modify the LP environment so that the LP solver can obtain the bounds. If FALSE, then it will undo the changes made by the function if setup = TRUE.

Value

Nothing, as this modifies an environment variable to save memory.


ivmte documentation built on Sept. 17, 2021, 5:06 p.m.