rphi {netregR}R Documentation

Generate positive definite phi set

Description

Generate positive definite phi set

Usage

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

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).

Value

phi

Vector of parameters.

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

Examples

rphi(10, seed=1)


[Package netregR version 1.0.1 Index]