drug_effects: Drug object generator

Description Usage Arguments Examples

View source: R/medianeffect.R

Description

Function to create a drug_effects object, either for a single drug or fixed-ratio combination of 2 drugs

Usage

1
2
3
4
5
6
7
8
drug_effects(
  D = double(),
  fa = double(),
  name = "",
  label = "",
  info = "",
  ratio = double()
)

Arguments

D

Vector of doses (single drug dose or sum of doses for fixed-ratio combinations)

fa

Vector of fraction affected

name

Long name of drug (optional)

label

Short label of drug (for plot labels, optional)

info

Longer description (optional)

ratio

If present, specifies vector of ratio of each drug in constant ratio combinations

Examples

1
2
3
D  <- c(0.10, 0.15, 0.20, 0.25, 0.35)
fa <- c(0.24, 0.44, 0.63, 0.81, 0.90)
drug_effects(D = D, fa = fa, name = 'Example', label = 'drug1')

jhchou/medianeffect documentation built on March 7, 2020, 12:56 a.m.