knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of causnet is to find a globally optimal causal network given some data.
You can install the development version from GitHub with:
require("devtools") install_github("USCbiostats/causnet")
~You can install the released version of causnet from CRAN with:~
install.packages("causnet")
library(causnet) # simulate data set.seed(1234) mydata <- simdat(n_var = 5) # causnet results links.s <- causnet(mydata) links.s
To use he a BGE scoring function simply pass thr score_bge()
to the score_fun
argument.
causnet(mydata, score_fun = score_bge)
Please note that the causnet project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.