ch.rmLearningBySN: A function remove the learning effect on RT by Subject

ch.rmLearningBySNR Documentation

A function remove the learning effect on RT by Subject

Description

This function remove the learning effect on RT by Subject.

Usage

ch.rmLearningBySN(
  data,
  snCol,
  trialCol,
  RTcol,
  fitCol,
  resCol,
  outputFile = NULL
)

Arguments

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)

Value

A dataframe with the learning function fit and residuals included

Examples

ch.rmLearningBySN (data=moralsData,"sn", "trial", "RT", "res.RT", "fit.RT", "fitOut.pdf")

ccpluncw/ccpl_R_chMorals documentation built on Feb. 4, 2024, 3:30 p.m.