EnterIntervalFinding {RNetica} | R Documentation |
Sets the finding associate with node to an interval.
EnterIntervalFinding(node, low, high, retractFirst = TRUE)
node |
An active |
low |
Lower bound of interval. |
high |
Upper bound of interval. |
retractFirst |
A logical value. If true, any previous findings will be retracted first. |
The node
must a continuous node that has
been discretized using NodeLevels(node)
. The
probabilities for each state are calculated based on a uniform
distribution with the given low
and high
endpoints.
Return the node
argument invisibly.
This function is not behaving at all like what I expected. In
particular, I expect that it would behave like a normal likelihood,
but instead it seems to be behaving as if I typed the expression
NodeValue(node)<-low
. I've queried Norsys about
this. Use with caution until I get a clarification.
Russell Almond
http://norsys.com/onLineAPIManual/index.html: EnterIntervalFinding_bn()
EnterNegativeFinding()
, EnterFindings()
,
RetractNodeFinding()
, NodeLikelihood()
,
NodeFinding()
, EnterGaussianFinding()
,
NodeValue()
sess <- NeticaSession() startSession(sess) cirt5 <- CreateNetwork("ContinuousIRT5", session=sess) theta <- NewContinuousNode(cirt5,"Theta") NodeLevels(theta) <- c(-5,-2.5,-1.5,-0.5,0.5,1.5,2.5,5) theta[] <- rep(1/NodeNumStates(theta),NodeNumStates(theta)) CompileNetwork(cirt5) ## Ready to enter findings EnterIntervalFinding(theta,-1,1) NodeBeliefs(theta) ## I expect the middle three values to be non-negative, but that is not ## what I get! DeleteNetwork(cirt5) stopSession(sess)