mixed_search: Mixed Graphical Model: automated search

Description Usage Arguments Details Value Examples

View source: R/mixed_search.R

Description

Data mining to learn the graph.

Usage

1
mixed_search(Y, data_type = NULL, IC = "BIC")

Arguments

Y

A data matrix of dimensions n (observations) by p (nodes)

data_type

Vector of length p. The type of data, with options of "b" (binary), "p" (Poisson), and "g" (Gaussian).

IC

Character string. The desired information criterion. Options include "AIC" and "BIC" (default).

Details

Only backwards selection is currently implemented. Only an adjacency matrix is provided.

Value

An object of class mixed_search, including wadj (weighted adjacency matrix) and adj (adjacency matrix).

Examples

1
2
3
4
5
# data
Y <- ifelse( ptsd[,1:5] == 0, 0, 1)

# search data (ising model)
fit <- mixed_search(Y, data_type = rep("b", 5))

GGMnonreg documentation built on April 8, 2021, 5:06 p.m.