Description Usage Arguments Value Examples
This is simply the Kronecker product of the contact matrix C
with a matrix of ones of dimension n
x n
.
1 |
C |
a |
n |
the size of the secondary dimension to expand to. |
a square matrix with n*ncol(C)
rows and columns.
1 | expandC(contactmatrix(), 2)
|
Loading required package: surveillance
Loading required package: sp
Loading required package: xtable
This is surveillance 1.18.0. For overview type ‘help(surveillance)’.
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
[1,] 1.89887640 1.89887640 1.1460674 1.1460674 0.9775281 0.9775281 3.179775
[2,] 1.89887640 1.89887640 1.1460674 1.1460674 0.9775281 0.9775281 3.179775
[3,] 0.21287129 0.21287129 3.4405941 3.4405941 0.9455446 0.9455446 2.381188
[4,] 0.21287129 0.21287129 3.4405941 3.4405941 0.9455446 0.9455446 2.381188
[5,] 0.05882353 0.05882353 0.5168067 0.5168067 4.5000000 4.5000000 2.184874
[6,] 0.05882353 0.05882353 0.5168067 0.5168067 4.5000000 4.5000000 2.184874
[7,] 0.26736111 0.26736111 0.7048611 0.7048611 1.2430556 1.2430556 3.812500
[8,] 0.26736111 0.26736111 0.7048611 0.7048611 1.2430556 1.2430556 3.812500
[9,] 0.11046512 0.11046512 0.3023256 0.3023256 0.8488372 0.8488372 2.281977
[10,] 0.11046512 0.11046512 0.3023256 0.3023256 0.8488372 0.8488372 2.281977
[11,] 0.05223881 0.05223881 0.2537313 0.2537313 0.2537313 0.2537313 1.373134
[12,] 0.05223881 0.05223881 0.2537313 0.2537313 0.2537313 0.2537313 1.373134
[,8] [,9] [,10] [,11] [,12]
[1,] 3.179775 1.314607 1.314607 0.5280899 0.5280899
[2,] 3.179775 1.314607 1.314607 0.5280899 0.5280899
[3,] 2.381188 1.123762 1.123762 0.3861386 0.3861386
[4,] 2.381188 1.123762 1.123762 0.3861386 0.3861386
[5,] 2.184874 1.432773 1.432773 0.2731092 0.2731092
[6,] 2.184874 1.432773 1.432773 0.2731092 0.2731092
[7,] 3.812500 1.951389 1.951389 0.5034722 0.5034722
[8,] 3.812500 1.951389 1.951389 0.5034722 0.5034722
[9,] 2.281977 2.906977 2.906977 0.5726744 0.5726744
[10,] 2.281977 2.906977 2.906977 0.5726744 0.5726744
[11,] 1.373134 1.656716 1.656716 1.6641791 1.6641791
[12,] 1.373134 1.656716 1.656716 1.6641791 1.6641791
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.