adjustmentProb {BiCausality}R Documentation

adjustmentProb function

Description

This function evaluates the P(Y=yflag|do(X=xflag)) given only marginal distributions using parent adjustment method.

Usage

adjustmentProb(EValHat, mat, yflag = 1, xflag = 1)

Arguments

EValHat

is an adjacency matrix of weighted directed causal graph where edge weights are P(Y=yflag|X=xflag) or probabilities of effect being 1 given cause being either 1 for positive association or 0 for negative association.

mat

is a matrix n by d where n is a number of transactions or samples and d is a number of dimensions.

yflag

is value set for Y in P(Y=yflag|X=xflag,z) for the adjustment method.

xflag

is value set for X in P(Y=yflag|X=xflag,z) for the adjustment method.

Value

This function returns an adjacency matrix of weighted directed causal graph where the edge weights are P(Y=yflag|do(X=xflag) ).

Examples

adjustmentProb(resC$CausalGRes$EValHat,mat)


[Package BiCausality version 0.1.4 Index]