ggm_compare: Compare Gaussian Graphical Models

Description Usage Arguments Value Examples

View source: R/ggm_compare.R

Description

Compare Gaussian Graphical Models

Usage

1
ggm_compare(Yg1, Yg2, method = "spearman", alpha = 0.05)

Arguments

Yg1

The data matrix of dimensions n (observations) by p (nodes) for group one.

Yg2

The data matrix of dimensions n (observations) by p (nodes) for group two.

method

Character string. Which type of correlation coefficients to be computed. Options include "pearson" (default), "kendall", "spearman", and "polychoric".

alpha

The desired significance level (defaults to 0.05). Note that 1 - alpha corresponds to specificity.

Value

An object of class ggm_compare

Examples

1
2
3
4
5
6
7
# data

Yg1 <- na.omit(subset(bfi, gender == 1)[,1:10])
Yg2 <- na.omit(subset(bfi, gender == 2)[,1:10])

# compare relations
fit <- ggm_compare(Yg1, Yg2)

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