find_conn_edges: find_conn_edges

Description Usage Arguments Examples

Description

Function to find the variables connected to a certain variable.

Usage

1

Arguments

pdag
row

Examples

 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)
  }

gekepals/pcabs documentation built on June 15, 2019, 12:03 a.m.