CRIB_internal: Internal functions for the CRIB method

CRIB_internalR Documentation

Internal functions for the CRIB method

Description

Internal functions for the CRIB method

Usage

crib_clusters(
  x,
  target,
  target_buffer,
  required_percent,
  longest_allowable_interruption,
  max_n_interruptions
)

crib_stratum(
  runs,
  x,
  target,
  required_percent,
  longest_allowable_interruption,
  max_n_interruptions
)

crib_test_stratum(
  x,
  target,
  runs,
  tree,
  h,
  required_percent,
  max_n_interruptions,
  longest_allowable_interruption
)

run_info(run)

collapse_runs(x, target)

crib_check_input(x, target = NULL, required_percent, target_buffer)

Arguments

x

factor. Epoch-by-epoch behavior classifications, e.g., SB, LPA, and MVPA

target

the level of x for which to examine bouts

required_percent

numeric (1-100; CRIB and Ostendorf_MVPA). The minimum percentage of the full bout period that must be spent engaging in the target behavior. Stated differently, this threshold stipulates that interruptions can compose no more than 100-required_percent of the bout

max_n_interruptions

numeric (CRIB). The maximum number of interruption events that are allowed before a bout will be considered invalid

runs

pre-processed input (mostly run length encoded)

run

a candidate run for which to retrieve basic information

results

output from crib_clusters


paulhibbing/PBpatterns documentation built on Feb. 17, 2024, 5:34 a.m.