ch.batchOverlapXY: Extends ch.batchOverlap to two separate X and Y datasets...

View source: R/chValues.r

ch.batchOverlapXYR Documentation

Extends ch.batchOverlap to two separate X and Y datasets Function

Description

This function runs ch.distOverlap for all the combinations of distributions identified in df.combns.

Usage

ch.batchOverlapXY(
  xValues,
  xItems,
  yValues,
  yItems,
  itemSet,
  df.combns,
  numRuns = 1000,
  outFile = NULL
)

Arguments

xValues

a vector of the values in the X Distributions.

xItems

a vector that identifies the item that each xValue is linked to.

yValues

a vector of the values in the Y Distributions.

yItems

a vector that identifies the item that each yValue is linked to.

itemSet

a vector of items that you want to run the bootstraps for.

df.combns

a vector of combinations that identifies the items (by index number of itemSet) whose values should be combined and compared against every other combination in this vector.

numRuns

the number of runs to do in the bootstrap. DEFAULT = 1000

outFile

the name of a text file that will be output as the bootstrap runs. This is filled incrementally just in case the program dies. DEFAULT = NULL - will not write a file

Value

a dataframe with the overlap statistics for each set of distributions compared. See ch.distOverlap

Examples

ch.batchOverlapXY (data1$responses, data1$items,data2$responses, data2$items,itemSet,df.combns, "out.txt" )

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