evaluate_history_option: Evaluates whether and how to fit a cumulative history...

View source: R/evaluate_history_parameter.R

evaluate_history_optionR Documentation

Evaluates whether and how to fit a cumulative history parameter.

Description

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.

Usage

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.

Value

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

Examples

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

bistablehistory documentation built on Sept. 13, 2023, 5:07 p.m.