Description Usage Arguments Examples
Function to find the variables connected to a certain variable.
1 | find_conn_edges(pdag, row)
|
pdag |
|
row |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (pdag, row)
{
conn_list = list()
t = 0
z = 0
for (i in pdag[row, ]) {
t = t + 1
if (i == 1) {
z = z + 1
conn_list[z] = colnames(pdag)[t]
}
}
return(conn_list)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.