calc_cmp: Calculate the coincidental match probability for a single...

Description Usage Arguments Value

View source: R/score_funcs.R

Description

Calculate the coincidental match probability for a single pair of event series.

Usage

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

Arguments

data

List of data.frames for one pair 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

Vector of c(low, high) limits for sampling session start times if samp == "periodic"

mark

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

Value

Data.frame of CMPs for each score function; <iet.mn, iet.md, s, m, cmp.iet.mn, cmp.iet.md, cmp.s, cmp.m>


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