generateModel: Generate Data from Structural Equation Model

View source: R/generateModel.R

generateModelR Documentation

Generate Data from Structural Equation Model

Description

Samples a random Graph and Data

Usage

generateModel(v, n, k, d, b, errorDist = "gauss")

Arguments

v

number of nodes

n

number of samples

k

the size of the largest cycle

d

the

Value

sigmaHat

estimated covariance matrix at convergence

bHat

estimated B matrix (edge weights for directed edges) at converegence

omegaHat

estimated Omega (edge weights for bi-directed edges) at convergence

iterations

number of iterations until convergence. a single iteration is considered a pass through all nodes

converged

boolean on whether or not the algorithm converged before the max iterations


ysamwang/BCD documentation built on Sept. 3, 2023, 1:33 a.m.