is.unknown {dagR}R Documentation

Check if a DAG node presents an unknown variable.

Description

Another helper function, internally used by brute.search. It checks whether the node specified is of type=2 or is named 'unknown'.

Usage

is.unknown(x, dag)

Arguments

x

The node of interest.

dag

The DAG to be evaluated.

Value

TRUE if unknown (acc. to type or name), FALSE otherwise.

Author(s)

Lutz P Breitling <lutz.breitling@gmail.com>

See Also

brute.search

Examples

dag2<-demo.dag2();
is.unknown(2, dag2);
is.unknown(3, dag2);
dag2u<-dag2; dag2u$names[2]<-"unknown";
is.unknown(2, dag2u);
is.unknown(3, dag2u);

[Package dagR version 1.1.3 Index]