MP_modules: mpParamsSetterUI

MP modulesR Documentation

mpParamsSetterUI

Description

The interface for the HCR options. The parameter selection inputs shown in the app are conditional on the selected type of HCR. Some of the inputs have initial values that can be set using the function arguments.

Does the setting part of the MP params module. Returns a list of MP params based on the MP inputs.

Creates the MP params list based on the MP selection from the Shiny UI. Defined outside of a reactive environment above so we can use it non-reactively (helpful for testing).

Usage

mpParamsSetterUI(
  id,
  mp_visible = NULL,
  title = "Select the type of HCR you want to test.",
  init_thresh_max_catch = 140,
  init_thresh_belbow = 0.5,
  init_constant_catch = 50,
  init_constant_effort = 1
)

mpParamsSetterServer(id, get_stoch_params = NULL)

mp_params_switcheroo(input, est_sigma = 0, est_bias = 0)

Arguments

id

The id (shiny magic)

mp_visible

Which HCR types to show.

title

The title.

init_thresh_max_catch

Initial value of the maximum catch for the catch threshold HCR.

init_thresh_belbow

Initial value of the belbow for the catch threshold HCR.

init_constant_catch

Initial value of constant catch for the constant catch HCR.

init_constant_effort

Initial value of constant effort for the constant effort HCR.

get_stoch_params

Reactive expression that gets the parameters from the stochasticity setter. Otherwise est_sigma and est_bias are set to 0.

input

List of information taken from the Shiny UI (mpParamsSetterUI)

est_sigma

Standard deviation of the estimation variability (default = 0).

est_bias

Estimation bias as a proportion. Can be negative (default = 0).

Value

A taglist

A list of HCR options.


AMPLE documentation built on Sept. 29, 2023, 9:07 a.m.