ci_test_statistic {lg}R Documentation

Calculate the value of the test statistic for the conditional independence test

Description

Calculate the test statistic in the test for conditional independence between the first two variables in the data set, given the remaining variables.

Usage

ci_test_statistic(lg_object, h = function(x) x^2, S = function(y)
  rep(T, nrow(y)))

Arguments

lg_object

An object of type lg, as produced by the lg_main-function

h

The h-function used in the calculation of the test statistic. The default value is h(x) = x^2.

S

The integration area in the test statistic. Logical function that takes grid points as argument.


[Package lg version 0.4.1 Index]