Learn R Programming

pcalg (version 1.1-6)

gmG: Graphical Model 8-Dimensional Gaussian Example Data

Description

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

Usage

data(gmG)

Arguments

source

The data set is identical to the one generated by ## Used to generate "gmG" set.seed(40) p <- 8 n <- 5000 gGtrue <- randomDAG(p, prob = 0.3) ## true DAG gmG <- list(x = rmvDAG(n, gGtrue), g = gGtrue)

Details

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

Examples

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

Run the code above in your browser using DataLab