I am running Quadratic Assignment Procedure (QAP) to find the correlation of a dependent network matrix with four independent monadic node covariate matrices in R using the sna package.
I am using the following code:
cor2<-sna::gcor(list(bilateralaid_network, GDP_capita_receiver,
GDP_capita_sender,
HDI_receiver,HDI_sender))
p2<-qaptest(list(bilateralaid_network, GDP_capita_receiver,
GDP_capita_sender,
HDI_receiver,HDI_sender), gcor, g1=1, g2=2, reps=1000)
p2<-qaptest(list(bilateralaid_network, GDP_capita_receiver,
GDP_capita_sender,
HDI_receiver,HDI_sender), gcor, g1=1, g2=3, reps=1000)
#etc
However I do not want to run a qaptest individually for each dependent variable like shown in this question.
Is there a way of returning all correlation coefficients and p-values in table or matrix format in R?
I read that it is possible with UCINET software, but I personally do not have access to it.
UCINET is able to provide a result like shown in the screenshot below. I would like to produce a similar output in R.