GenA: Generate a simple pattern adjacent matrix A

View source: R/Generation.R

GenAR Documentation

Generate a simple pattern adjacent matrix A

Description

Generate a simple pattern adjacent matrix A

Usage

GenA(n, n0, pf, pr, pi)

Arguments

n

number of nodes

n0

number of hub nodes

pf

A_{ij} if node j in the follower set of hub i

pr

A_{ij} if node j does not belong to the follower set of hub i

pi

a n-dimensional vector containing probability of appearance in non-hub group

Value

a (n0+1)*n matrix, the first row is pi

Examples

pi = rep(0.05,100)
A0 = GenA(100,5,0.4,0.1,pi)


zhibinghe/Phub documentation built on Feb. 21, 2025, 11:52 a.m.