Learn R Programming

dynparam (version 1.0.2)

numeric_range_parameter: Define a numeric range parameter

Description

Define a numeric range parameter

Usage

numeric_range_parameter(
  id,
  default,
  lower_distribution,
  upper_distribution,
  description = NULL,
  tuneable = TRUE
)

Arguments

id

The name of the parameter.

default

The default value of the parameter.

lower_distribution

A distribution from which the lower value of the range can be sampled.

upper_distribution

A distribution from which the upper value fo the range can be sampled.

description

An optional (but recommended) description of the parameter.

tuneable

Whether or not a parameter is tuneable.

See Also

dynparam for an overview of all dynparam functionality.

Examples

Run this code
# NOT RUN {
numeric_range_parameter(
  id = "quantiles",
  default = c(0.1, 0.99),
  lower_distribution = uniform_distribution(0, 0.25),
  upper_distribution = uniform_distribution(0.9, 1),
  description = "The lower and upper quantile thresholds."
)
# }

Run the code above in your browser using DataLab