rphi function

Generate positive definite phi set

Generate positive definite phi set

rphi(n, seed = NULL, phi6 = FALSE, directed = TRUE)

Arguments

  • 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\phi_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.

See Also

build_exchangeable_matrix, invert_exchangeable_matrix

  • Maintainer: Frank W. Marrs
  • License: MIT + file LICENSE
  • Last published: 2018-08-01

Useful links