random_minors: Randomly choosing a set of minors

View source: R/tests-factoranalysis.R

random_minorsR Documentation

Randomly choosing a set of minors

Description

Randomly samples indices of minors without replacement.

Usage

random_minors(m, factors, nr)

Arguments

m

Integer, number of observed nodes (and dimension of (m x m)-matrix).

factors

Integer, number of hidden factors.

nr

Integer, number of (factors+1 x factors+1) minors to sample.

Value

Matrix with nr rows and 2*factors+2 columns. Each row corresponds to one minor. The first factors+1 columns correspond to the row-indices of the minor, the last factors+1 columns correspond to the column-indices of the minor.

Examples

random_minors(10,2,100)

NilsSturma/TestGGM documentation built on June 30, 2023, 3:09 p.m.