ch.valuesBootstrapOverlaps: A function to calculate the overlaps of the values data using...

ch.valuesBootstrapOverlapsR Documentation

A function to calculate the overlaps of the values data using a bootstrap

Description

This function calculate the overlaps of the values data using a bootstrap.

Usage

ch.valuesBootstrapOverlaps(
  data,
  valuesCol,
  promptCol,
  params,
  allItems = T,
  multicore = F,
  combFun = ch.maxAveComb,
  ...
)

Arguments

data

the values dataframe.

valuesCol

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.

promptCol

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

params

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

allItems

a boolean to state whether all the items are to be bootsrapped. If FALSE, then the "itemSetDataFile" in the params list must contain a subset of items to be bootstrapped. DEFAULT = TRUE.

multicore

a boolean to specifies whether to run the analysis in multicore mode. DEFAULT = FALSE.

combFun

If there are multiple items contributing to a single distribution, this function describes how the values will be combined across items in both the X and Y distributions. The function must combine elements of a list that might be of different different lengths. The default just flattens the list into one large vector. DEFAULT = ch.maxAveComb (with probMax = 0.5)

Value

a dataframe of the overlaps by probe combination. It also writes the data to the file (bootstrapOutdataFile) specified in params.

Examples

ch.valuesBootstrapOverlaps (data=valuesData, "tValues", "prompt", params=parameters)

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