# first and second moments' estimation
bn.moments(data, R = 200, m = nrow(data), algorithm,
algorithm.args = list(), reduce = NULL, debug = FALSE)
# descriptive statistics
bn.var(x, method)
bn.moments
) or the number of Monte Carlo samples (in
bn.var.test
).gs
,
iamb
, fast.iamb
, inter.iamb
, mmpc
,
hc
, tabu
mvber.moments
(the return value of the bn.moments
function).tvar
(total variance), gvar
(generalized variance
), nvar
(Frobenius matrix
norm, which is equivalent to <first
or second
.
If first
all the arcs with first moment equal to zero are
dropped; if if second
all the arcs with zero variance
are dropped.TRUE
a lot of debugging output
is printed; otherwise the function is completely silent.bn.moments
returns an object of class mvber.moments
. bn.var
returns a vector of two elements, the observed value of
the statistic (named statistic
) and its normalized equivalent
(named normalized
).
z = bn.moments(learning.test, algorithm = "gs", R = 100)
bn.var(z, method = "tvar")
Run the code above in your browser using DataLab