Description Usage Arguments Details Value See Also Examples
netvif
vectorizes the object for the QAP regression and
passes to the function vif
in the package car
to calculate the vif.
1 |
y |
dependent network variable. |
x |
stack of independent network variables (array or list object). |
mode |
string indicating the type of graph being evaluated.
|
diag |
logical. Whether the diagonal value is considered or not (default). |
fun |
intiger indicating the regression model: |
This is a utility function for selecting the independent variables when conducting QAP regression.
a vector indicating vifs.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.