Knockoff Conditional Mutual Information
Arguments
- data
Observation data.
- target
Integer vector of column indices for the target variables.
- agent
Integer vector of column indices for the agent variables.
- conds
Integer vector of column indices for the conditioning variables.
- knockoff
Knockoff realizations for the
agentvariable. Each column is a Monte Carlo realization generated using theagentandcondsvariables.- null_knockoff
(optional) Knockoff realizations generated under the null setting where all variables (
target,agent,conds) are jointly used to construct knockoffs. Each column represents one Monte Carlo realization. Must beNULLifcontain_null = FALSE.- type
(optional) Estimation method:
"disc"for discrete mutual information or"cont"for continuous mutual information (KSG estimator).- nboots
(optional) Number of permutations used in the sign-flipping permutation test for evaluating the significance of the mean information difference.
- k
(optional) For
type = "cont", the number of nearest neighbors used by the continuous conditional mutual information estimator. Fortype = "disc", the number of bins used for discretization.- threads
(optional) Number of threads used.
- seed
(optional) Random seed used for permutation test.
- base
(optional) Logarithm base of the entropy. Defaults to
exp(1)(nats). Use2for bits or10for dits.- method
(optional) Discretization method. One of
"sd","equal","geometric","quantile","natural("jenks")", or"headtail"("headtails").- contain_null
(optional) Logical. If
TRUE, the test statistic is computed as \(I(Y; X_{null} | Z) - I(Y; X_{knockoff} | Z)\). IfFALSE, it is computed as \(I(Y; X | Z) - I(Y; X_{knockoff} | Z)\).