ch.rmLearningBySN | R Documentation |
This function remove the learning effect on RT by Subject.
ch.rmLearningBySN(
data,
snCol,
trialCol,
RTcol,
fitCol,
resCol,
outputFile = NULL
)
data |
A dataframe containing the choice data (often after running through ch.moralsDataPrep()). |
snCol |
A string that specifies the name of the column in "data" that contains the subject number. |
trialCol |
A string that specifies the name of the column in "data" that contains the trial number. |
RTcol |
A string that specifies the name of the column in "data" that contains the RT for each trial. |
fitCol |
A string that specifies the name of the new column that will contain the predicted datapoints. |
resCol |
A string that specifies the name of the new column that will contain the residual datapoints. |
outputFileTag |
A string to put on the front of a filename that you want a graph of the learning fit written to. DEFAULT = NULL (no file written) |
A dataframe with the learning function fit and residuals included
ch.rmLearningBySN (data=moralsData,"sn", "trial", "RT", "res.RT", "fit.RT", "fitOut.pdf")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.