R/irf.R
stat_out_degree.Rd
Row 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 out-degree. If your matrix has non-zero diagonal entries, subtract them manually.
NA
stat_out_degree(X)
Network matrix
Vector of out-degrees
compute_irf, build_shock, stat_density, stat_in_degree
compute_irf
build_shock
stat_density
stat_in_degree
X <- matrix(c(0, 1, 0, 1, 0, 1, 0, 0, 0), 3, 3) stat_out_degree(X) #> [1] 1 1 1