rBAP | R Documentation |
Samples from a linear SEM corresponding to a BAP
rBAP( n, p, dist, d, b, B = NULL, Omega = NULL, directLow = 0.6, directHigh = 1, bidirectLow = 0.3, bidirectHigh = 0.5, t.df = 13, ancestral = F, shuffle = T, signs = T )
n |
number of observations |
p |
number of variables |
dist |
the distribution of the errors
|
d |
number of directed edges |
b |
number of bidirected edges |
B |
the direct effects; leave as null to randomly sample |
Omega |
the covariance of epsilon; leave as null to randomly sample |
directLow |
the lower bound for the absolute value of a randomly sampled directed edge weight |
directHigh |
the upper bound for the absolute value of a randomly sampled directed edge weight |
bidirectLow |
the lower bound for the absolute value of a randomly sampled bidirected edge weight |
bidirectHigh |
the upper bound for the absolute value of a randomly sampled bidirected edge weight |
t.df |
degree of freedom if distribution is T |
ancestral |
T restricts the graph to be ancestral; F allows for a BAP which may not be ancestral |
shuffle |
Setting shuffle = T randomly relabels the nodes; if set to F then 1... p will always is a valid causal ordering |
signs |
Setting signs = F, all parameters are positive; setting signs = F allows both positive and negative values |
B the directed edge coefficients
Omega covariance of varepsilon
directEdges the adjacency matrix of the directed edges (support of B)
bidirectEdgesthe adjacency matrix of the bidirected edges (support of Omega)
errs the sampled epsilon values
Y the sampled Y values
Sigma the population covariance
ord a topological ordering of the nodes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.