I want to perform an Anova test on my social network data to examine if a node categorical attribute is associated with the node's network constraint (continuous variable).
I know that this analysis can be done using the UCINET program, but I would like to use R as I am doing the rest of my analysis in R.
As far as I understand, I would need to permutate the graph first, then measure the node constraints, and then calculate the anova's of all permutated networks.
Would anyone know how I could do this in R?
Replicable Sample
Examine if being a certain type is associated with having less constraint.
g2 <- make_graph(~ A --+ B:D, B --+ D:F, C--+B , D--+A:B:F:E, E--+ D, F--+ A:E:G, G--+ F)
type<-c("one","two","three","one","two","three","one")
vertex_attr(g2,"type")<-type
constraint<-igraph::constraint(g2)
g2_N<-intergraph::asNetwork(g2)
I found two potential approaches following the instructions from Hobson et. al. (2021):
Linear Regression
ANOVA I tried to follow a similar approach but for an Anova test and not a linear regression. However, I was not sure which observation value to choose to compare the observations as it seems that using the p-value does not make 100% sense.