--- title: "crm12Comb: R Package of Phase I/II Adaptive Design for Drug Combinations based on CRM Design" author: "Junying Wang, Song Wu, Jie Yang" date: "`r Sys.Date()`" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{crm12Comb: R Package of Phase I/II Adaptive Design for Drug Combinations based on CRM Design} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ### Install and import the $crm12Comb$ package ```{r setup, eval = FALSE} install.packages("./crm12Comb_0.1.7.tar.gz", repos = NULL, type = "source") library(crm12Comb) help(package="crm12Comb") ``` ### Summary of $crm12Comb$ The package crm12Comb is used to simulate the combined phase I and phase II adaptive dose finding design based on continual reassessment method (CRM) for drug combinations, and output the operating characteristics for design evaluations using different input scenarios/skeletons/prior distributions/link functions/other settings. The crm12Comb package contains eight functions with one main function $SIM\_phase\_I\_II()$ to realize the whole process of the design and other helper functions including $get\_ordering()$ to obtain the complete orderings for both toxicity and efficacy under drug combinations, $priorSkeketons()$ to generate toxicity/efficacy skeletons, $rBin2Corr()$ to generate correlated binary data for (toxicity, efficacy) outcomes, $toxicity\_est()$ (or $efficacy\_est()$) to estimate toxicity (or efficacy) for one enrolled patient or cohort of patients, and $randomization\_phase()$ (or $maximization\_phase()$) to perform adaptive randomization (or maximization) phase for selecting dose combination for next patient or cohort of patients allocations. The corresponding documentations can be viewed using the following statements. ```{r, eval=FALSE} ### main function, please use this function to run simulations ?SIM_phase_I_II ### helper functions need to run before simulations (pre-defined settings) ?priorSkeletons ### helper functions included in the main function SIM_phase_I_II() ?rBin2Corr ?ger_ordering ?toxicity_est ?efficacy_est ?randomization_phase ?maximization_phase ``` ### Link functions used in CRM design The $crm12Comb$ package is currently able to perform various link functions based on corresponding prior distributions for both toxicity and efficacy probabilities. Let $\pi_T(d_i)$ be the toxicity probability for the $i$th dose combination $d_i$ under each toxicity ordering $m$ and toxicity skeleton $0