Description Usage Arguments Value Examples
View source: R/sRSA_iterative_indep_pr.R
Simple RSA (iterative, independent of trial order (prior rate))
This function calculates the speaker's posterior guess of the feature value preferences of the listener in the iterative setting. That means how the speaker infers the preferences of the listener based on the object choice.
1 2 3 4 5 6 7 8 | determineSpeakerPostListPrefsSimpleRSAWithPriorPref_indep_pr(
currentObjects,
featureUtt,
softPrefValue,
notObeyInst,
priorPrefAll,
priorRate
)
|
currentObjects |
A vector of three values in The target is the first object in the vector |
featureUtt |
One of the values |
softPrefValue |
A parameter value between Value reflects how categorical the listener's preferences are: 0: The listener always picks her preferred object. If the listener prefers red objects, she will always pick the red object in the scene. infinity: It is as likely for the listener to pick green, blue or red objects. |
notObeyInst |
Determines the extent to which the instruction of the speaker is obeyed by the listener. (0 = full obedience, infinity = full instruction ignorance). Example: 0: Listener always picks red objects following the utterance "red". infinity: Listener as likely to pick green, blue or red objects even if the utterance is "red". |
priorPrefAll |
A vector of length 9. Probability mass over all feature values. Gives a prior preferences distribution over all (nine) feature values. |
priorRate |
This parameter specifies how much the prior information is weighed into the speaker's decision is weighed into the decision of the speaker regarding the feature preferences of the listener. |
A vector of length 9. It contains the speaker's inference of the feature value preferences of the listener independent of the trial order.
1 2 3 4 5 6 | determineSpeakerPostListPrefsSimpleRSAWithPriorPref_indep_pr(currentObjects, featureUtt,
softPrefValue, notObeyInst, priorPrefAll, priorRate)
output:
[1] 6.666667e-01 6.666667e-101 3.333333e-01 0.000000e+00 0.000000e+00 0.000000e+00
[7] 0.000000e+00 0.000000e+00 0.000000e+00
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.