knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

causnet

Codecov test coverage R build status

The goal of causnet is to find a globally optimal causal network given some data.

Installation

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")

Example

library(causnet)

# simulate data
set.seed(1234)
mydata <- simdat(n_var = 5)

# causnet results
links.s <- causnet(mydata)

links.s

using BGE scoring function

To use he a BGE scoring function simply pass thr score_bge() to the score_fun argument.

causnet(mydata, score_fun = score_bge)

Code of Conduct

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.



USCbiostats/causnet documentation built on July 15, 2020, 10:41 a.m.