dose_grid: Create matrix of all possible dose combinations

Description Usage Arguments Value

View source: R/dose_grid.R

Description

Provided with the possible levels of each dose, this function gives you all possible combinations.

Usage

1
dose_grid(d_orig, log_transform = FALSE, d_star = NULL)

Arguments

d_orig

A list of two vectors. The first vector contains the possible dose levels for drug 1. The second vector contains the possible dose levels for drug 2.

log_transform

If TRUE, then will output log-transformed dose levels.

d_star

When log_transform is true, you must provide refence dose levels – a vector of length 2.

Value

A matrix with two columns (dose1, dose2) and number of rows equal to the number of combinations


dominicmagirr/dosecombo documentation built on May 6, 2019, 4:32 p.m.