ch.getValuesSummaryStats: A function to get the value stats for each item

ch.getValuesSummaryStatsR Documentation

A function to get the value stats for each item

Description

This function gets the value stats for each item and outputs those into a file.

Usage

ch.getValuesSummaryStats(data, promptCol, valueCol, RTcol, outFile = NULL)

Arguments

data

the values dataframe.

promptCol

a string that specifies the name of the column in "data" that contains the prompt for each trial.

valueCol

a string that specifies the name of the column in "data" that contains the participant's estimate of value for the item in each trial.

RTcol

a string that specifies the name of the column in "data" that contains the participant's reaction times for the item in each trial.

outFile

a string that specifies the name of the file to output the stats in. DEFAULT = NULL (no output)

Value

a dataframe of the value stats. It also writes the item statistics to the outFile.

Examples

ch.getValuesSummaryStats (data=valuesData, "prompt", "respS", "respTime")

ccpluncw/ccpl_R_chValues documentation built on Feb. 12, 2024, 4:21 a.m.