Description Usage Arguments Details Value References See Also Examples
This function takes X and Y values and fits the multiple linear regression Y = X β + ε and returns standard errors.
1 2 3 |
Y |
Vector of relations to be regress, of length d. Column-wise vectorization of adjacency matrix without diagonal entries (self-loops). |
X |
Matrix of covariates to be regressed upon, including intercept if intercept is desired, must have d rows. Ordering of rows should match |
directed |
Optional logical indicator of whether input data is for a directed network, default is |
tmax |
Optional numeric of third dimension of relational data array, default is |
nodes |
Optional d \times 2 matrix indicating the (directed) relation pairs to which each entry in Y and each row in X corresponds. If not input, complete network observation with column-wise vectorization of adjacency matrix without diagonal entries (self-loops) is assumed. The size d and |
reweight |
Optional logical indicator of whether iteratively reweighted least squares should be used to compute estimate of β. Default is |
type |
Optional character specifying degree of exchangeability of third dimension of array (when present, i.e. in temporal relational arrays). Default is |
tol |
Optional numeric, tolerance of stopping criteria of iteratively reweighted least squares estimate of β. Default is |
maxit |
Optional numeric, maximum number of iterations for iteratively reweighted least squares estimate of β. Default is |
ndstop |
Optional logical indicator of whether negative definite weighting matrix in iteratively reweighted least squares should stop the descent. Default is |
verbose |
Optional logical indicator of whether information from iteratively reweighted least squares estimate of β should be printed. Default is |
This function takes X and Y values and fits the multiple linear regression Y = X β + ε by ordinary least squares or iteratively reweighted least squares as indicated by the input. The covariance structure is exchangeable from that of Marrs et. al. (2017). The standard errors and test statistics are based on the same paper.
The three dimensional relational array case, i.e. temporal relational data, requires a specification of the type of exchangeability in this third dimension. We may assume that different time periods are independent. On the other hand, we might assume each repeated observation is exchangeable (for example decomposing trade networks into sectors of trade: goods vs. services). See Figure 6a of Marrs et. al. (2017) for the exchangeable case and the surrounding discussion for the independent case.
fit |
An |
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.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.