Description Usage Arguments Details Value References See Also Examples
Build an exchangeable matrix of sparseMatrix class
1 | build_exchangeable_matrix(n, phi, directed = TRUE, dyads = NULL)
|
n |
Number of actors in the network, scalar numeric. |
phi |
Appropriate-length vector of parameters, must be length 5 or 6 for directed= |
directed |
Optional logical indicator of whether input data is for a directed network, default is |
dyads |
Optional numeric vector of dyads to subset the matrix to. |
This function builds a covariance matrix in the exchangeable class from the vector of parameters input. See Marrs et.al. (2017).
out |
Exchangeable matrix. |
Marrs, F. W., Fosdick, B. K., & McCormick, T. H., (2017). Standard errors for regression on relational data with exchangeable errors. arXiv preprint arXiv:1701.05530.
rphi
, invert_exchangeable_matrix
1 2 | n <- 5
build_exchangeable_matrix(n, rphi(n, seed=1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.