algebraic {assemblerr}R Documentation

Algebraic relationship

Description

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

Usage

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

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

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

Value

A building block of type 'algebraic'

Examples

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)

[Package assemblerr version 0.1.0 Index]