pairwise_cmp: Wrapper to compute CMP for each combination of a given pair...

Description Usage Arguments Value

View source: R/score_funcs.R

Description

Wrapper to compute CMP for each combination of a given pair of user data

Usage

1
2
pairwise_cmp(data, n, W = c(0, 7), bidirectional = TRUE,
  samp = "empirical", sampSpace = NULL, rng = NULL, mark = 1)

Arguments

data

List of data.frames for two pairs of event series (output of assocr::sessionize_data()):

  • data: sessionized data, <id, m, sid, t>

  • sessions: summary of sessionized data, <id, m, sid, n, t>

n

Number of samples to draw

W

Vector containing observation window c(low, high).

bidirectional

Logical indicating if the inter-event times should be bidirectional (versus only looking at events prior to event of interest)

samp

Sampling technique to use. One of

  • empirical: sessionized resampling from empirical distn of start times

  • gaussian: sessionized resampling from Gaussian distn such that 99

  • uniform: sessionized resampling from Uniform distn over rng

sampSpace

vector representation of empirical sample space for session start times if samp == "empirical"

rng

Data.frame of ranges for resampling; column names correspond to ids and the 2 rows correspond to (lower, upper) limits

mark

which mark to perform the seampling for; default == 1

Value

Array of CMPs for each pairwise combination of event streams & score function


UCIDataLab/assocr documentation built on Oct. 15, 2021, 8:54 p.m.