prepare_data_conj_suff_stats_infer_prior: Convert data into format for bulk updating with sufficient...

Description Usage Arguments Value

View source: R/stan-conj-update.R

Description

For Stan models that are based on sufficient statistics for training data (count, mean, and sample standard deviation) instead of raw training observations.

Usage

1
2
prepare_data_conj_suff_stats_infer_prior(df, cue, category, response,
  condition, ranefs, test_df = df)

Arguments

df

Data frame with adaptation data

cue

(Quoted) name of columns in training and test which have the cue values.

category

(Quoted) name of column in training data with the correct category labels.

response

(Quoted) name of column in test data with responses

condition

(Quoted) name of column with group identifiers

ranefs

(Quoted) name of column(s) with random effect grouping variables (like subject IDs).

test_df

(optional) data frame with test data (all data is used as test by default).

Value

A list of data for 'conj_id_lapsing_sufficient_stats_fit.stan'.


kleinschmidt/beliefupdatr documentation built on May 24, 2020, 8:26 p.m.