(auxiliary function)

FitOmega(adj, xi, directed, selfloops)

Arguments

adj

adjacency matrix

xi

combinatorial matrix

directed

boolean

selfloops

boolean

Value

propensity matrix

Examples

data(adj_karate)
xi <- compute_xi(adj_karate, FALSE, FALSE)
FitOmega(adj_karate, xi, FALSE, FALSE)
#>       [,1]       [,2]       [,3]       [,4]      [,5]      [,6]      [,7]
#>  [1,]    0 0.06797753 0.07478853 0.08153369 0.1791438 0.1041875 0.1120143
#>  [2,]    0 0.00000000 0.12959528 0.11773726 0.0000000 0.0000000 0.0000000
#>  [3,]    0 0.00000000 0.00000000 0.10359146 0.0000000 0.0000000 0.0000000
#>  [4,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#>  [5,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.3789086
#>  [6,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.5522697
#>  [7,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#>  [8,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#>  [9,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [10,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [11,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [12,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [13,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [14,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [15,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [16,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [17,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [18,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [19,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [20,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [21,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [22,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [23,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [24,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [25,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [26,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [27,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [28,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [29,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [30,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [31,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [32,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [33,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#> [34,]    0 0.00000000 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000
#>             [,8]       [,9]     [,10]     [,11]     [,12]     [,13]      [,14]
#>  [1,] 0.07464318 0.05744124 0.0000000 0.1193448 0.4455018 0.1143384 0.08619118
#>  [2,] 0.21582692 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.20760743
#>  [3,] 0.18987910 0.18265496 0.1881875 0.0000000 0.0000000 0.0000000 0.10949819
#>  [4,] 0.25892641 0.00000000 0.0000000 0.0000000 0.0000000 0.7996711 0.19912697
#>  [5,] 0.00000000 0.00000000 0.0000000 0.9151555 0.0000000 0.0000000 0.00000000
#>  [6,] 0.00000000 0.00000000 0.0000000 0.5292098 0.0000000 0.0000000 0.00000000
#>  [7,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#>  [8,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#>  [9,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [10,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [11,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [12,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [13,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [14,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [15,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [16,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [17,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [18,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [19,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [20,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [21,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [22,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [23,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [24,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [25,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [26,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [27,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [28,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [29,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [30,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [31,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [32,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [33,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#> [34,] 0.00000000 0.00000000 0.0000000 0.0000000 0.0000000 0.0000000 0.00000000
#>       [,15] [,16]     [,17]     [,18] [,19]     [,20] [,21]     [,22] [,23]
#>  [1,]     0     0 0.0000000 0.2964786     0 0.1861150     0 0.2289872     0
#>  [2,]     0     0 0.0000000 0.2139145     0 0.2690966     0 0.3313588     0
#>  [3,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#>  [4,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#>  [5,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#>  [6,]     0     0 0.6945038 0.0000000     0 0.0000000     0 0.0000000     0
#>  [7,]     0     0 0.7477722 0.0000000     0 0.0000000     0 0.0000000     0
#>  [8,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#>  [9,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [10,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [11,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [12,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [13,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [14,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [15,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [16,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [17,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [18,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [19,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [20,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [21,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [22,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [23,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [24,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [25,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [26,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [27,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [28,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [29,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [30,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [31,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [32,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [33,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#> [34,]     0     0 0.0000000 0.0000000     0 0.0000000     0 0.0000000     0
#>       [,24] [,25]     [,26] [,27]      [,28]     [,29]     [,30]     [,31]
#>  [1,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#>  [2,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.1268710
#>  [3,]     0     0 0.0000000     0 0.09483287 0.1992835 0.0000000 0.0000000
#>  [4,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#>  [5,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#>  [6,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#>  [7,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#>  [8,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#>  [9,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.3220958
#> [10,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [11,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [12,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [13,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [14,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [15,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [16,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [17,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [18,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [19,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [20,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [21,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [22,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [23,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [24,]     0     0 0.3448838     0 0.29647860 0.0000000 0.2221637 0.0000000
#> [25,]     0     0 0.3985693     0 0.64502058 0.0000000 0.0000000 0.0000000
#> [26,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [27,]     0     0 0.0000000     0 0.00000000 0.0000000 1.0000000 0.0000000
#> [28,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [29,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [30,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [31,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [32,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [33,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#> [34,]     0     0 0.0000000     0 0.00000000 0.0000000 0.0000000 0.0000000
#>            [,32]      [,33]      [,34]
#>  [1,] 0.04668291 0.00000000 0.00000000
#>  [2,] 0.00000000 0.00000000 0.00000000
#>  [3,] 0.00000000 0.03301917 0.00000000
#>  [4,] 0.00000000 0.00000000 0.00000000
#>  [5,] 0.00000000 0.00000000 0.00000000
#>  [6,] 0.00000000 0.00000000 0.00000000
#>  [7,] 0.00000000 0.00000000 0.00000000
#>  [8,] 0.00000000 0.00000000 0.00000000
#>  [9,] 0.00000000 0.09518899 0.10071048
#> [10,] 0.00000000 0.00000000 0.25998868
#> [11,] 0.00000000 0.00000000 0.00000000
#> [12,] 0.00000000 0.00000000 0.00000000
#> [13,] 0.00000000 0.00000000 0.00000000
#> [14,] 0.00000000 0.00000000 0.07551035
#> [15,] 0.00000000 0.30875675 0.16312000
#> [16,] 0.00000000 0.22452503 0.23768292
#> [17,] 0.00000000 0.00000000 0.00000000
#> [18,] 0.00000000 0.00000000 0.00000000
#> [19,] 0.00000000 0.16343551 0.25998868
#> [20,] 0.00000000 0.00000000 0.08148127
#> [21,] 0.00000000 0.38004479 0.10023262
#> [22,] 0.00000000 0.00000000 0.00000000
#> [23,] 0.00000000 0.20558691 0.24491679
#> [24,] 0.00000000 0.12900171 0.08183640
#> [25,] 0.26824235 0.00000000 0.00000000
#> [26,] 0.48362947 0.00000000 0.00000000
#> [27,] 0.00000000 0.00000000 0.13739208
#> [28,] 0.00000000 0.00000000 0.13090027
#> [29,] 0.31064866 0.00000000 0.13739208
#> [30,] 0.00000000 0.16503157 0.06539944
#> [31,] 0.00000000 0.14559932 0.11548443
#> [32,] 0.00000000 0.10316984 0.08183640
#> [33,] 0.00000000 0.00000000 0.05696108
#> [34,] 0.00000000 0.00000000 0.00000000