algebraic: Algebraic relationship

Description Usage Arguments Details Value Examples

View source: R/algebraics.R

Description

This building block defines a model variable as a function of other variables.

Usage

1
algebraic(definition)

Arguments

definition

A definition of the model variable

Details

Algebraic relationships are equations where one variable is defined as a function of multiple other variables. assemblerr uses R formulas to implement these equations. For example, the Emax dose response model

effect=emax*dose/(ed50 + dose)

could be declared as

1
    algebraic(effect~emax*dose/(ed50+dose))

where the tilde ~ replaced the equal sign = in the definition.

Value

A building block of type 'algebraic'

Examples

1
2
3
4
5
6
m <- model() +
  input_variable("dose") +
  prm_log_normal("emax", 10, 0.3) +
  prm_no_var("ed50", 5) +
  algebraic(effect~emax*dose/(ed50+dose)) +
  obs_additive(~effect)

assemblerr documentation built on Jan. 13, 2022, 1:07 a.m.