Description Usage Arguments Details Value Examples
Expects tidied data with three required (1-3) and two optional fields (4, 5)
1 2 3 |
data, |
tidied data |
quantityVarName, |
entity name we're quantifying over (i.e. "stars" in Peloquin & Frank (2016)) |
semanticsVarName, |
literal listener semantic values for RSA computations |
itemVarName, |
unique items were comparing, probaby words (i.e. "degrees" in Peloquin & Frank (2016)) |
costsVarName, |
costs variable name |
priorsVarName, |
priors variable name |
depth, |
recursive depth parameter |
alpha, |
decision noise parameter level |
usePriorEveryRecurse, |
boolean incorporate priors during each full recursion |
1) quanityVarName :: entity name we're quantifying over
2) itemVarName :: unique items were considering,
3) semanticsVarName :: literal listener semantics
4) optional costsVarName :: costs
5) optional priorsVarName :: priors
rsa-ready, tidied data should have a unique semantic value for each quantity * item combination. (see formatting of peloquinFrank_2Alts data).
data frame with posterior predictions 'preds' column appended
1 | rsa.runDf(peloquinFrank_2Alts, "stars", "speaker.p", "words")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.