R/prl_fictitious_multipleB.R

#' @templateVar MODEL_FUNCTION prl_fictitious_multipleB
#' @templateVar CONTRIBUTOR \href{https://ccs-lab.github.io/team/jaeyeong-yang/}{Jaeyeong Yang (for model-based regressors)} <\email{jaeyeong.yang1125@@gmail.com}>, \href{https://ccs-lab.github.io/team/harhim-park/}{Harhim Park (for model-based regressors)} <\email{hrpark12@@gmail.com}>
#' @templateVar TASK_NAME Probabilistic Reversal Learning Task
#' @templateVar TASK_CODE prl
#' @templateVar TASK_CITE 
#' @templateVar MODEL_NAME Fictitious Update Model
#' @templateVar MODEL_CODE fictitious
#' @templateVar MODEL_CITE (Glascher et al., 2009)
#' @templateVar MODEL_TYPE Multiple-Block Hierarchical
#' @templateVar DATA_COLUMNS "subjID", "block", "choice", "outcome"
#' @templateVar PARAMETERS \code{eta} (learning rate), \code{alpha} (indecision point), \code{beta} (inverse temperature)
#' @templateVar REGRESSORS "ev_c", "ev_nc", "pe_c", "pe_nc", "dv"
#' @templateVar POSTPREDS "y_pred"
#' @templateVar LENGTH_DATA_COLUMNS 4
#' @templateVar DETAILS_DATA_1 \item{subjID}{A unique identifier for each subject in the data-set.}
#' @templateVar DETAILS_DATA_2 \item{block}{A unique identifier for each of the multiple blocks within each subject.}
#' @templateVar DETAILS_DATA_3 \item{choice}{Integer value representing the option chosen on that trial: 1 or 2.}
#' @templateVar DETAILS_DATA_4 \item{outcome}{Integer value representing the outcome of that trial (where reward == 1, and loss == -1).}
#' @templateVar LENGTH_ADDITIONAL_ARGS 0
#' 
#' @template model-documentation
#'
#' @export
#' @include hBayesDM_model.R
#' @include preprocess_funcs.R

#' @references
#' Glascher, J., Hampton, A. N., & O'Doherty, J. P. (2009). Determining a Role for Ventromedial Prefrontal Cortex in Encoding Action-Based Value Signals During Reward-Related Decision Making. Cerebral Cortex, 19(2), 483-495. https://doi.org/10.1093/cercor/bhn098
#'


prl_fictitious_multipleB <- hBayesDM_model(
  task_name       = "prl",
  model_name      = "fictitious",
  model_type      = "multipleB",
  data_columns    = c("subjID", "block", "choice", "outcome"),
  parameters      = list(
    "eta" = c(0, 0.5, 1),
    "alpha" = c(-Inf, 0, Inf),
    "beta" = c(0, 1, 10)
  ),
  regressors      = list(
    "ev_c" = 3,
    "ev_nc" = 3,
    "pe_c" = 3,
    "pe_nc" = 3,
    "dv" = 3
  ),
  postpreds       = c("y_pred"),
  preprocess_func = prl_multipleB_preprocess_func)

Try the hBayesDM package in your browser

Any scripts or data that you put into this service are public.

hBayesDM documentation built on Sept. 23, 2022, 9:06 a.m.