GITLAB

Jingan Qu / Bayesian_Causal_Model

Sign in
  • Sign in
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • bayesian_causal_model
  • bnlearn.R
  • 8375af764   add all code 11-7-2016 Browse Code ยป
    Jingan Qu
    2016-11-07 14:21:38 -0500  
bnlearn.R 265 Bytes
edit raw blame history
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
setwd("/home/qja0428/Dropbox/research/Yoo")

library(bnlearn)

data(learning.test)
write.csv(learning.test, "test_data.csv",row.names = F)

dataset = learning.test[1:101,]

a = hc(dataset, score='bde')
plot(a)



dag = hc(learning.test, score = "bde")