This is an helper function to create values F matrices using specific intergroup actions for network inference.

IndicFshape(sqF, ngrp, Indic)

Arguments

sqF

Size of an F cell

ngrp

Number of groups

Indic

Matrix to specify where there is an interaction from one group to another

Value

An array of size (sqF, sqF, ngrp).

Author

Bertrand Frederic, Myriam Maumy-Bertrand.

Examples


IndicFshape(3, 2, matrix(1,2,2)-diag(2))
#> , , 1
#> 
#>      [,1] [,2] [,3]
#> [1,] "0"  "0"  "0" 
#> [2,] "0"  "0"  "0" 
#> [3,] "0"  "0"  "0" 
#> 
#> , , 2
#> 
#>      [,1] [,2] [,3]
#> [1,] "0"  "0"  "0" 
#> [2,] "a1" "0"  "0" 
#> [3,] "a2" "a1" "0" 
#> 
#> , , 3
#> 
#>      [,1] [,2] [,3]
#> [1,] "0"  "0"  "0" 
#> [2,] "a1" "0"  "0" 
#> [3,] "a2" "a1" "0" 
#> 
#> , , 4
#> 
#>      [,1] [,2] [,3]
#> [1,] "0"  "0"  "0" 
#> [2,] "0"  "0"  "0" 
#> [3,] "0"  "0"  "0" 
#>