Learn R Programming

dynwrap (version 1.2.4)

def_parameters: Meta information on the parameters of the TI method

Description

Parameters can be defined using dynparam::dynparam().

Usage

def_parameters(..., parameters = NULL, forbidden = NULL)

Arguments

...

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.

Examples

Run this code
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)
  )
)

Run the code above in your browser using DataLab