netvif: Calculate vif for network regression.

Description Usage Arguments Details Value See Also Examples

View source: R/netvif.R

Description

netvif vectorizes the object for the QAP regression and passes to the function vif in the package car to calculate the vif.

Usage

1
netvif(y, x, mode = "digraph", diag = FALSE, fun = "netlm")

Arguments

y

dependent network variable.

x

stack of independent network variables (array or list object).

mode

string indicating the type of graph being evaluated. "digraph"(default: directed graph) or "graph"(undirected graph) .

diag

logical. Whether the diagonal value is considered or not (default).

fun

intiger indicating the regression model: "netlm"(default) or "netlogit".

Details

This is a utility function for selecting the independent variables when conducting QAP regression.

Value

a vector indicating vifs.

See Also

vif, netlm, netlogit.

Examples

1
2
3
4
5
6
7
8
# Create some input graphs
x <- sna::rgraph(20,4)

# Create a response structure
y <- x[1,,]+4*x[2,,]+2*x[3,,]   #Note that the fourth graph is unrelated

# calculate the vifs when using these items
netvif(y, x, fun = "netlm")

huhn1234/vogeltools documentation built on Jan. 17, 2020, 5:21 p.m.