updateBeliefs: Update beliefs

Description Usage Arguments Value

Description

This function runs the input randomizations through the belief_update function from David Kleinschmidt's beliefupdatr package. It assumes two perceptual categories that vary along a single acoustic parameter. These categories are assumed to form normal distributions.

Usage

1
updateBeliefs(randomizations, priorParamsG, priorParamsK)

Arguments

randomizations

Takes a list of randomized trials.

priorParamsG

A series of parameters associated with the G distribution. Entered as c(1,2,3,4). Where 1 = mean, 2 = variance, 3 = mean psuedocount, and 4 = variance psuedocount.

priorParamsK

A series of parameters associated with the K distribution. Entered as c(1,2,3,4). Where 1 = mean, 2 = variance, 3 = mean psuedocount, and 4 = variance psuedocount.

Value

A list of the randomizations in the same order as presented with an additional column corresponding to the beliefs updated at each trial.


nick-monto/slopeExtractR documentation built on May 17, 2019, 8:21 a.m.