sensquery: Sensitivity of probability query

Description Usage Arguments Details See Also

View source: R/sensquery.R

Description

sensquery returns for a given probability of interest the parameters changes that make it possible and the resulting CD distances.

Usage

1
2
sensquery(bnfit, interest_node, interest_node_value, new_value,
  evidence_nodes = NULL, evidence_states = NULL)

Arguments

bnfit

object of class bn.fit

interest_node

character string. Node of the probability query of interest.

interest_node_value

character string. Level of interest_node

new_value

numeric value between 0 and 1. Value of the probability of interest.

evidence_nodes

character string. Evidence nodes. Set by default to NULL.

evidence_states

character string. Levels of evidence_nodes. If NULL no evidence is considerated. If evidence_nodes="NULL", evidence_states should be set to NULL. Set by default to NULL.

Details


The Bayesian network should be expressed as a bn.fit object. The name of the node of the probability of interest, its level and the new value should be specified. Evidence could be also indicated. The probability of interest is specified as follows:

P ( interest_node = interest_node_value | evidence_nodes = evidence_states ) = new_value

By default, the proportional covariation scheme is used for computing the CD distance.

See Also

Other sensitivity: sensitivity


rramsiya/bnsens documentation built on Sept. 30, 2020, 3:28 p.m.