dicp_controls {tramicp}R Documentation

TRAMICP Controls

Description

TRAMICP Controls

Usage

dicp_controls(
  type = "residual",
  test = "gcm.test",
  baseline_fixed = TRUE,
  alpha = 0.05,
  method = "gamma",
  kernel = c("gaussian", "discrete"),
  B = 499,
  vcov = "vcov",
  teststat = "maximum",
  distribution = "asymptotic",
  xtrafo = coin::trafo,
  ytrafo = coin::trafo,
  residuals = "residuals",
  crossfit = getOption("crossfit", default = FALSE),
  stop_if_empty_set_invariant = getOption("stop_if_empty_set_invariant", default = FALSE),
  wald_test_interactions = getOption("wald_test_interactions", default = TRUE)
)

Arguments

type

Character, type of invariance ("residual" or "wald"); see Details.

test

Character, specifies the invariance test to be used when type = "residual". The default is "gcm.test". Other implemented tests are "HSIC", "t.test", "var.test", and "combined". Alternatively, a custom function for testing invariance of the form \(r, e, controls) {...} can be supplied, which outputs a list with entry "p.value".

baseline_fixed

Logical; whether or not the baseline transformation is allowed to vary with the environments. Only takes effect when type is "wald".

alpha

Level of invariance test, default 0.05.

method

Only applies if test = "HSIC". See dhsic.test.

kernel

Only applies if test = "HSIC". See dhsic.test.

B

For test = "HSIC", see dhsic.test.

vcov

(Name of) function for computing the variance-covariance matrix of a model.

teststat

Only applies if test = "independence". See independence_test.

distribution

Only applies if test = "independence". See independence_test.

xtrafo

Only applies if test = "independence". See independence_test.

ytrafo

Only applies if test = "independence". See independence_test.

residuals

Character or function; (Name of) function for computing model residuals. The default is stats::residuals with methods dispatch.

crossfit

Logical; toggle for cross fitting when type = "residual".

stop_if_empty_set_invariant

Logical; dicp halts if the empty set is not rejected (the resulting intersection will always be empty). Default is FALSE and can be over-written by setting options(stop_if_empty_set_invariant = TRUE).

wald_test_interactions

Logical; whether to test for interactions between residuals and environments when using type = "wald" (wald_test_interactions = TRUE, the default) or main effects only (wald_test_interactions = FALSE).

Value

List of dicp controls containing the evaluated arguments from above.


[Package tramicp version 0.0-2 Index]