Learn R Programming

doseSens (version 1.0.0)

change_Delta: A helper that takes a gurobi model object outputted from dose_attributable_general or dose_thresh_attributable_one_sided and changes the Delta parameter. Saves computation time by directly editing the constraint involving Delta without having to reinitialize the other constraints that are kept the same. Outputs a list analogous to output from dose_attributable_general or dose_thresh_attributable_one_sided.

Description

A helper that takes a gurobi model object outputted from dose_attributable_general or dose_thresh_attributable_one_sided and changes the Delta parameter. Saves computation time by directly editing the constraint involving Delta without having to reinitialize the other constraints that are kept the same. Outputs a list analogous to output from dose_attributable_general or dose_thresh_attributable_one_sided.

Usage

change_Delta(model, Delta, direction = "equal", TT)

Value

A gurobi model and solution.

Arguments

model

A gurobi model object outputted from dose_attributable_general.

Delta

The new Delta to test for.

direction

The new direction to test

TT

The observed test statistic.