select_highestprob_interval: Select Model

View source: R/select_highestprob_interval.R

select_highestprob_intervalR Documentation

Select Model

Description

Select the probability region (model) with highest posterior probability, given current results. Note that for generalizability, this function currently calculates probabilities for regions completely falling within the pf+pt <=1 region.

Usage

selected = select_highestprob_interval(dose_info, pf_matrix, pt_matrix)
best_pf = selected$best_pf
best_pt = selected$best_pt

Arguments

dose_info

Dataframe containing

[dose level | availability | N_d | X_d | Y_d | Z_d | pf | pe | pt]

pf_matrix

Matrix containing start and end points of futility (pf) intervals

pt_matrix

Matrix containing start and end points of toxicity (pt) intervals

Value

A list containing:

  • post_probs – a matrix of posterior probailities per region (model)

  • best_pf – futility interval index for chosen model

  • best_pt – toxicity interval index for chosen model


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