ch.moralsPlotSnRTpHitFits: A function to plot the subject fits

ch.moralsPlotSnRTpHitFitsR Documentation

A function to plot the subject fits

Description

This function plots the subject fits.

Usage

ch.moralsPlotSnRTpHitFits(
  snSummaryArray,
  snCol,
  rtSloCol,
  rtIntCol,
  rtR2Col,
  phBCol,
  phACol,
  phR2Col,
  xAll,
  filename = NULL
)

Arguments

snSummaryArray

a dataframe containing the morals fit coeficients and r square for RT and p(Hit) for each subject.

snCol

a string that specifies the name of the column in "snSummaryArray" that contains the subject number.

rtSloCol

a string that specifies the name of the column in "snSummaryArray" that contains the best fit slope for the RT data of each subject.

rtIntCol

a string that specifies the name of the column in "snSummaryArray" that contains the best fit intercept for the RT data of each subject.

rtR2Col

a string that specifies the name of the column in "snSummaryArray" that contains the r square the fit of the RT data of each subject.

phBCol

a string that specifies the name of the column in "snSummaryArray" that contains the best fit beta for the p(hit) data of each subject.

phACol

a string that specifies the name of the column in "snSummaryArray" that contains the best fit alpha for the p(hit) data of each subject.

phR2Col

a string that specifies the name of the column in "snSummaryArray" that contains the r square the fit of the p(hit) data of each subject.

xAll

a vector containing the overlap rounds used when fitting the RT and p(hit) data.

filename

a string with the filename (pdf) for the plot to be saved. DEFAULT = NULL (no file saved)

Value

.

Examples

ch.moralsPlotSnRTpHitFits(subOutData, "sn", "rtSlo", "rtInt", "rtR2", "phB", "phA", "phR2", xAll, filename)

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