Skip to contents

This function checks the provided arguments against the expected arguments for the specified engine and algorithm, and distributes them appropriately to the search object. It ensures that the arguments are valid for the given engine and algorithm, and then sets them on the search object.

Usage

distribute_engine_args(search, args, engine, alg)

Arguments

R6 object, either TetradSearch, BnlearnSearch, PcalgSearch, or CausalDiscoSearch.

args

List of arguments to distribute

engine

Engine identifier, either "tetrad", "bnlearn", "pcalg", or "causalDisco"

alg

Algorithm name