degrootList: Run the degroot function on a series transition matrices

Description Usage Arguments Value

View source: R/degroot_list.R

Description

Run the degroot function on a series transition matrices

Usage

1
degrootList(mat.list, Y, all.iter = T, row.normalize = T, self.weight = 1)

Arguments

mat.list:

a list of matrices

Y:

the initial values of the diffusion process

all.iter:

T/F indicator of whether every iteration of the diffusion process should be saved

row.normalize:

T/F, should the matrices be row normalized before proceeding?

self.weight:

numeric value(s) in [0, 1], indicating how much each person weights him-/herself vs. others. 0 indicates full self-weight, and 1 indicates full other-weight. Only used if row.normalize is TRUE.

Value

If all.iter is TRUE, a matrix of Y X length(mat.list), with the outcome of the diffusion process at each iteration. If all.iter is FALSE, the outcome of the last iteration


jcfisher/latentnetDiffusion documentation built on May 20, 2019, 5:26 p.m.