GenG: Generate grouped data G

View source: R/Generation.R

GenGR Documentation

Generate grouped data G

Description

Generate grouped data G

Usage

GenG(A, T, rho)

Arguments

A

(n0+1)*n-dimensional adjacent matrix

T

number of observations (groups)

rho

a (n0+1) dimensional vector containing hub weight

Value

T*n matrix

Examples

n = 100; n0 = 5; T = 1000
A0 = GenA(n,n0,0.4,0.1,rep(0.05,100))
rho = c(0.2,rep(0.8/n0,n0))
G0 = GenG(A0,T,rho)


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