50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

OncoBayes2 (version 0.9-3)

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=1N(di/di))

Usage

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

Value

The function returns an object of class blrm_formula.

Arguments

ref_doses

Numeric vector of reference doses with names corresponding to drug names

max_interaction_level

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

specific_interaction_terms

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

Examples

Run this code

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

# can be used with blrm_trial
blrm_formula_linear(ref_doses)

Run the code above in your browser using DataLab