n: Number of actors in the network, scalar numeric.
seed: Optional numeric seed to set, default is NULL.
phi6: Optional logical indicator of whether sixth parameter ϕ6 should be considered nonzero. Default is FALSE.
directed: Optional logical indicator of whether input data is for a directed network, default is TRUE. Undirected data format is lower triangle of adjacencey matrix.
Returns
phi: Vector of parameters.
Details
This function generates a set of 5 (or 6, as appropriate) parameters that corresponds to positive definite exchangeable covariance matrix for a network of size n. See Marrs et. al. (2017).
Examples
rphi(10, seed=1)
References
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.