View source: R/select_highestprob_interval.R
select_highestprob_interval | R Documentation |
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.
selected = select_highestprob_interval(dose_info, pf_matrix, pt_matrix)
best_pf = selected$best_pf
best_pt = selected$best_pt
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 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.