uic_across: Perform UIC across data.frame

View source: R/mdr_smap.R

uic_acrossR Documentation

Perform UIC across data.frame

Description

uic_across Perform UIC for a target variable and multiple causal variables

Usage

uic_across(
  block,
  effect_var,
  E_range = 0:10,
  tp_range = -4:0,
  tau = 1,
  num_surr = 1000,
  alpha = 0.05,
  fdr = FALSE,
  silent = FALSE
)

Arguments

block

Data.frame contains time series data.

effect_var

Character or Numeric. Column name or index of the effect variable.

E_range

Numeric. Embedding dimensions that will be tested.

tp_range

Numeric. tp tested for UIC.

tau

Numeric. tau tested for UIC.

num_surr

Numeric. The number of surrogate data generated to compute p-value.

alpha

Numeric. the significant level to determine the embedding dimension of reference model (i.e., E0). If alpha = NULL, E0 is set to E - 1. If ⁠0 < alpha < 1⁠ E0 depends on the model results with lower embedding dimensions. Default is 0.05.

fdr

Logical. If TRUE, calculate False Discovery Rate using stats::p.adjust() and BH method.

silent

Logical. if TRUE, progress message will not be shown.

Details

  • Osada & Ushio (2020) rUIC:Unified Information-theoretic Causality for R. https://doi.org/10.5281/zenodo.5163234

Value

A data.frame that contains UIC results


ong8181/macam documentation built on Dec. 20, 2024, 2:33 a.m.