change_decisiontable_entry: Smooth Decision Table

View source: R/change_decisiontable_entry.R

change_decisiontable_entryR Documentation

Smooth Decision Table

Description

Change any entry of a decision table

Usage

decision_table15 = make_decision_table(15, PF = 0.2, PF_tolerance = 0.05, eta = 0.8, PT = 0.2, PT_tolerance = 0.05, zeta = 0.8)
decision_table15 = change_decisiontable_entry(decision_table15, 12, 4, "E")

Arguments

decision_table

A matrix decision table, returned from make_decision_table()

futility_index

Futility interval index(es) of decision to be changed

toxicity_index

Toxicity interval index(es) of decision to be changed

new_decision

Decision to be changed to, one of "DU", "D", "S", "E", or "EU"

Details

Note that the entries for futility and toxicity indexes can be single values or vectors. However, when changing entries values, this will change all the entries within the bounds of the specified ranges which can lead to unexpected function behavior. For usage safety, please only enter one entry to change at a time. Always make sure to check the smoothed decision table afterwards to make sure the results are as desired.

Value

A matrix containing the updated decision table


jiyingz/clinicalMPI documentation built on Jan. 19, 2024, 5:58 a.m.