sample_plot {crm12Comb}R Documentation

Sample plot for a given output results

Description

This function is used to generate the plot of relationships between outcomes and total average sample size, number of patients for determination of randomization phase, skeleton, and Association parameter for efficacy and toxicity binary outcome by different scenarios and link functions.

Usage

sample_plot(dat, outcome, outname, N = NULL, nR = NULL, Skeleton = NULL, corr = NULL)

Arguments

dat

Input data used for plot.

outcome

Column name for the outcome used in the plot.

outname

A string for the name of outcome.

N

Maximum sample size, if not fixed, use the default value NULL.

nR

Number of patients for determination of randomization phase, if not fixed, use the default value NULL.

Skeleton

Two skeletons with number 1 and 2, if not fixed, use the default value NULL.

corr

Association parameter for efficacy and toxicity, if not fixed, use the default value NULL.

Details

4 settings with multiple inputs: need to fix three and plot each outcome vs. the remaining one by 6 scenarios:

1. N: maximum sample size -> 40, 50, 60
2. nR: subset sample size -> 10, 20, 30
3. Skeleton: two sets of skeletons for toxicity and efficacy
4. corr: correlation between toxicity and efficacy binary outcomes -> 0, -2.049, 0.814

Value

Returns a ggplot object.

Examples

# load the data stored in the crm12Comb package
data(examples_results, package = "crm12Comb")

# fix the number of patients for determination of randomization phase, skeleton, 
# and Association parameter for efficacy and toxicity binary outcome
# plot the relationship between 
# "Probability of ODC as target combinations" vs. total average sample size
sample_plot(examples_results, outcome = "prob_target", 
  outname = "Probability of ODC as target combinations", 
  N = NULL, nR = 20, Skeleton = 1, corr = 0)


[Package crm12Comb version 0.1.6 Index]