evaluate_history_option function

Evaluates whether and how to fit a cumulative history parameter.

Evaluates whether and how to fit a cumulative history parameter.

Evaluation is based on the param_value.

  1. A single positive number (>0) that is used for all participants and runs.
  2. NULL (default) - a single value will be fitted for all participants and runs, also applied if randomN == 1.
  3. "random" - an independent value is fitted for each random cluster.
  4. "1|random"- a value for a random cluster is sampled from a population distribution, i.e., pooled parameter values via a multilevel model.
evaluate_history_option(param_name, param_value, randomN, upperLimit)

Arguments

  • param_name: Name of the parameter.
  • param_value: Value from the fit_cumhist function call.
  • randomN: Number of levels for the random variable.
  • upperLimit: Upper limit for a valid param_value.

Returns

a list with <param_name>_option and fixed_<param_name>.

Examples

evaluate_history_option("tau", 1, 1, Inf)