queryFinding: Query an independence network, given a finding.

Description Usage Arguments Value See Also

View source: R/query.R

Description

Query a finding, and apply FUN. Just a wrapper around setFinding and querygrain.

Usage

1
  queryFinding(x, node, nodeWithState, nodeState, FUN, ...)

Arguments

x

A grain

node

Character vector of length 1. The node whose marginal distribution is required.

nodeWithState

Character vector of length 1. The node whose state is to be conditioned upon.

nodeState

The state to set nodeWithState to. A character vetor of length 1.

FUN

a function that is applied to the output of querygrain. The first argument should accept the result of querygrain FOR A PARTICULAR NODE. (Usaully querygrain returns a list, since it may provide the distribution of a number of nodes at once. Here, we remove that list.) Any other arguments are passed ...

...

Passed to FUN

Value

The result of FUN

See Also

as.grain, marginalGivenOthers, marginalGivenIntervention


rjbgoudie/structmcmc documentation built on Nov. 3, 2020, 3:41 a.m.