def_parameters | R Documentation |
Parameters can be defined using dynparam::dynparam()
.
def_parameters(..., parameters = NULL, forbidden = NULL)
... |
Parameters to wrap in a parameter set. |
parameters |
A list of parameters to wrap in a parameter set. |
forbidden |
States forbidden region of parameter via a character vector, which will be turned into an expression. |
library(dynparam)
def_parameters(
character_parameter(id = "method", default = "one", values = c("one", "two", "three")),
integer_parameter(
id = "ndim",
default = 3L,
distribution = uniform_distribution(lower = 2L, upper = 20L)
),
numeric_parameter(
id = "beta",
default = 0.005,
distribution = expuniform_distribution(lower = 1e-10, upper = 1)
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.