evaluate_history_option {bistablehistory} | R Documentation |
Evaluates whether and how to fit a cumulative history parameter.
Description
Evaluation is based on the param_value
.
A single positive number (>0) that is used for all participants and runs.
-
NULL
(default) - a single value will be fitted for all participants and runs, also applied ifrandomN == 1
. -
"random"
- an independent value is fitted for each random cluster. -
"1|random"
- a value for a random cluster is sampled from a population distribution, i.e., pooled parameter values via a multilevel model.
Usage
evaluate_history_option(param_name, param_value, randomN, upperLimit)
Arguments
param_name |
Name of the parameter. |
param_value |
Value from the |
randomN |
Number of levels for the random variable. |
upperLimit |
Upper limit for a valid |
Value
a list with <param_name>_option
and fixed_<param_name>
.
Examples
evaluate_history_option("tau", 1, 1, Inf)
[Package bistablehistory version 1.1.2 Index]