bayesianGonzalezWu: bayesianGonzalezWu

Description Usage Arguments Value See Also Examples

Description

bayesianGonzalezWu

Usage

1
2
3
4
5
6
7
8
9
bayesianGonzalezWu(stimuli, kappa = psiLogOdds(multiCycle(kappaObjective,
  references = c(leftBoundaryObjective, rightBoundaryObjective))),
  kappaObjective = 0.5, responses = NULL, tauStimuli = 1,
  tauCategory = 1, leftBoundaryObjective = minValue - smallValue,
  rightBoundaryObjective = maxValue + smallValue,
  rightBoundaryExpansion = NULL, leftBoundaryExpansion = NULL,
  minValue = min(c(stimuli, responses), na.rm = T),
  maxValue = max(c(stimuli, responses), na.rm = T), smallValue = 10^-10,
  mode = "prediction", responseGrid = NULL)

Arguments

stimuli

a vector of stimuli, between 0 and inf

kappa

The location of the category in subjective space (from -inf to inf). Defaults to 0

kappaObjective

An alternative specification for the kappa location, situated in objective measures.

responses

an optional vector of responses

tauStimuli

The precision of the stimulus traces: may be a single number or a vector

tauCategory

The precision of the category distribution

leftBoundaryObjective

The location (in objective units) of the posited (or fitted) psychological left-hand boundary of legal stimulus values. Defaults to a small amount less than 0

rightBoundaryObjective

The location (in objective units) of the posited (or fitted) psychological right-hand boundary of legal stimulus values. Defaults to a small amount more than 1

rightBoundaryExpansion

How much beyond the maximum stimulus/response value should the right boundary be expanded?

leftBoundaryExpansion

How much beyond the minimium stimulus/response value should the left boundary be expanded?

minValue

The lowest range value (in objective units). Should be at least as small as the smallest stimulus and response.

maxValue

The highest range value (in objective units). Should be at least as large as the largest stimulus and response.

smallValue

a small amount, by which to default boundary expansion

mode

What aspect should the function calculate? Legel choices include "prediction", "simulation", and "subjectiveLogLikelihood"

responseGrid

an optional vector of response structured Responses If responses are given, the return value is the logLikelihood of the responses given the parameters

Value

A vector the transformed stimuli

See Also

bayesianHuttenlocherSpatialMemory

Examples

1
2
3
bayesianGonzalezWu(1:100/100)
bayesianGonzalezWu(1:100/100, kappa=1, tauStimuli=2)
bayesianGonzalezWu(1:100/100, kappa=1, tauStimuli=2, responses=2*(1:100)^.9)

dlandy/WarpedBayes documentation built on May 29, 2019, 2:49 p.m.