R/irf.R
stat_in_degree.Rd
Column sums of network matrix. Includes the diagonal entry for each node. In typical DBN usage the diagonal is NA or zero, so the result matches the conventional in-degree. If your matrix has non-zero diagonal entries, subtract them manually.
NA
stat_in_degree(X)
Network matrix
Vector of in-degrees
compute_irf, build_shock, stat_density, stat_out_degree
compute_irf
build_shock
stat_density
stat_out_degree
X <- matrix(c(0, 1, 0, 1, 0, 1, 0, 0, 0), 3, 3) stat_in_degree(X) #> [1] 1 2 0