50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

pcalg (version 1.1-4)

gmI: Graphical Model IDA Data Example

Description

This data set contains a matrix containing information on seven gaussian variables and the corresonding DAG model.

Usage

data(gmI)

Arguments

source

The data set is identical to the one generated by ## Used to generate "gmI" set.seed(123) p <- 7 n <- 10000 myDAG <- randomDAG(p, prob = 0.2) ## true DAG datI <- rmvDAG(n, myDAG) gmI <- list(x = datI, g = myDAG)

Details

The data was generated as indicated below. First, a random DAG model was generated, then 10000 samples were drawn from this model.

Examples

Run this code
data(gmI)
str(gmI, max=3)
pairs(gmI$x, gap = 0,
      panel=function(...) smoothScatter(..., add=TRUE))

Run the code above in your browser using DataLab