Learn R Programming

rcicr (version 0.3.4.1)

computeCumulativeCICorrelation: Computes cumulative trial CIs correlations with final/target CI

Description

Computes cumulative trial CIs correlations with final/target CI.

Usage

computeCumulativeCICorrelation(stimuli, responses, baseimage, rdata, targetci = list(), step = 1)

Arguments

stimuli
Vector with stimulus numbers (should be numeric) that were presented in the order of the response vector. Stimulus numbers must match those in file name of the generated stimuli
responses
Vector specifying the responses in the same order of the stimuli vector, coded 1 for original stimulus selected and -1 for inverted stimulus selected.
baseimage
String specifying which base image was used. Not the file name, but the key used in the list of base images at time of generating the stimuli.
rdata
String pointing to .RData file that was created when stimuli were generated. This file contains the contrast parameters of all generated stimuli.
targetci
List Target CI object generated with rcicr functions to correlate cumulative CIs with
step
Step size in sequence of trials to compute correlations with

Value

Vector containing correlation between cumulative CI and final/target CI

Details

Use for instance for plotting curves of trial-final/target CI correlations to estimate how many trials are necessary in your task