ch.moralsGetProbNo | R Documentation |
This function assesses the participants bias to say no as a function of "x"
ch.moralsGetProbNo(
data,
x,
yesNoCol,
yesNoVal = c("Yes", "No"),
summarize = T,
minNperXbin = 0,
plotFilename = NULL,
...
)
data |
the dataframe. |
x |
a string the specifies the column name in "data" that contains the x variable. |
yesNoCol |
a string the specifies the column name in "data" that contains the variable with the participant's yes/no response. |
summarize |
Do you want to collapse the data by "x"? DEFAULT = TRUE. |
minNperXbin |
an integer that specifies the minimum number of trials necessary to include an group of the x variable in the graph. DEFAULT = 0. |
plotFilename |
the filename to save the plot (pdf) if you want it. DEFAULT = NULL (no plot saved). |
respYNVal |
a vector of two values that specifies the yes "take action" value (index 1) and the no "take no action" value (index 2). e.g, c("yes", "no") |
an lm fit object.
ch.moralsGetProbNo (data=moralsData, "overlapRound", "respDef", c("Yes", "No"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.