Learn R Programming

bootnet (version 1.6)

ggmGenerator: Generates a function that simulates data from the Gaussian graphical model (GGM)

Description

Generates data given a partial correlation network. Data can be made ordinal by using a threshold model with equally spaced thresholds.

Usage

ggmGenerator(ordinal = FALSE, nLevels = 4, skewFactor = 1, type =
                   c("uniform", "random"), missing = 0)

Arguments

ordinal

Logical, should ordinal data be generated?

nLevels

Number of levels used in ordinal data.

skewFactor

How skewed should ordinal data be? 1 indicates uniform data and higher values increase skewedness.

type

Should thresholds for ordinal data be sampled at random or determined uniformly?

missing

Proportion of data that should be simulated to be missing.

Author

Sacha Epskamp <mail@sachaepskamp.com>