Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

blrm_formula_linear

Build a BLRM formula with linear interaction term in logit-space


Description

blrm_formula_linear is a convenience function for generating a formula for blrm_trial and blrm_exnex with an interaction of the form:

η \, ∏_{i=1}^N (d_i \big / d_i^*))

Usage

blrm_formula_linear(
  ref_doses,
  max_interaction_level = 2,
  specific_interaction_terms = NULL
)

Arguments

ref_doses

Numeric vector of reference doses with names corresponding to drug names

max_interaction_level

Highest interaction order to consider [1 - Inf]. Default: 2

specific_interaction_terms

List of custom interaction terms to generate (e.g. list(c("drug1", "drug2"), c("drug1", "drug3"))). Default: NULL

Value

The function returns an object of class blrm_formula.

Examples

ref_doses <- c(drug_A=10, drug_B=20)

# can be used with blrm_trial
blrm_formula_linear(ref_doses)

OncoBayes2

Bayesian Logistic Regression for Oncology Dose-Escalation Trials

v0.7-0
GPL (>= 3)
Authors
Novartis Pharma AG [cph], Sebastian Weber [aut, cre], Lukas A. Widmer [aut], Andrew Bean [aut], Trustees of Columbia University [cph] (R/stanmodels.R, configure, configure.win)
Initial release
2021-05-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.