| algebraic | R Documentation |
This building block defines a model variable as a function of other variables.
algebraic(definition)
definition |
A definition of the model variable |
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.
A building block of type 'algebraic'
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.