ch.filterValuesData: A function to filter the values data for analysis

ch.filterValuesDataR Documentation

A function to filter the values data for analysis

Description

This function filters the values data for analysis by removing RT outliers and bad subjects based on RT. The thresholds for removal are set in the valuessDBfile that is read and stored in a parameter list.

Usage

ch.filterValuesData(data, snCol, promptCol, valueCol, RTcol, params)

Arguments

data

the values dataframe.

snCol

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

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.

params

a list of parameters that are read in using "ch.readValuesDBfile.r."

Value

a dataframe of filtered data. It also writes the items; the item statistics; and the data; to the files specified in params.

Examples

ch.filterValuesData (data=valuesData, "sn", "prompt", "resp", params=parameters)

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