bang | R Documentation |
Estimates a graph from data generated by a linear SEM with non-Gaussian errors corresponding to a BAP
bang(Y, K, level = 0.01, verbose = T, restrict = 1)
Y |
n x p matrix of observations with sample in row, variable in column |
K |
The degree of the moment which is non-Gaussianity (i.e., this is K in the paper) |
level |
the nominal level for the empirical likelihood tests |
verbose |
Print progress updates |
restrict |
Which moment restrictions to test in empirical likelihood
|
totalEffect estimate of (I-B)^(-1)
directEffect estimate of B
omega estimate of Omega
dEdge estimate of adjacncey matrix corresponding to directed edges
bEdge estimate of adjacncey matrix corresponding to bidirected edges
errs estimated epsilons
## Not run: dat <- ngBap::rBAP(n = 50000, p = 7, dist = "gamma", d = 3, b = 5, ancestral = F, shuffle = T, signs = T) Y <- dat$Y out <- ngBap::bang(Y, K = 3, level = .01, verbose = F, restrict = 1) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.