After estimating the conditional probability in Bayesian networks, I asked the probability of one node ("Inlet_gas_total_pressure") as follows;
bn.mle.before$"Inlet_gas_total_pressure"
Parameters of node Inlet_gas_total_pressure (multinomial distribution)
Conditional probability table:
no yes
0.843127 0.156873
bn.mle.before$"Inlet_gas_total_pressure"$prob
no yes
0.843127 0.156873
I want to change the probability value of "yes" from 0.156873 to 0.4.
How can I do that ?
The following was my trial, but fails.
bn.mle.before$"Inlet_gas_total_pressure" <- list(prob=c("no"=0.6, "yes"=0.4))
Error in check.fit.dnode.spec(value, node = name) : the conditional probability distribution of node Inlet_gas_total_pressure must be a table, a matrix or a multidimensional array.
Please help me.