# NOT RUN {
# We will generate 10 different data sets from truth1 (V1-->T1-->T2-->T3)
# with signal = 1.0, N = 100 and 6 different T nodes orderings. Therefore, we
# will get 10 by 6 output matrix, where the rows are 10 independent data
# sets and columns are for six methods MRPC, pc, pc.stable, mmpc
# mmhc, and hc respectively.
library(MRPC) # MRPC
library(pcalg) # pc
library(bnlearn) # pc.stable, mmpc, mmhc, and hc
# Run
Output <- CompareMethodsNodeOrdering(N = 100,
signal = 1.0,
model = 'truth1',
n_data = 10,
n_nodeordering = 6)
# }
Run the code above in your browser using DataLab