Dear all,<br><br>I had a problem when trying to specify the data (with sienaDataCreate) for a coevolution of 1-mode and 2-mode networks model.<br><br>In particular, the problem lies with the nodeSet attribute of a unimodal constant dyadic covariate (geographical distance between hospitals)<br>
<br>This is the code I used:<br><br>first i defined the different nodesets for the two sets of actors<br><br>> nrhosp <- dim(exchange1)[1]
<br>> nrspec <- dim(setting1)[2]
<br>> hosp <- sienaNodeSet(nrhosp, nodeSetName="hosp")
<br>> spec <- sienaNodeSet(nrspec, nodeSetName="spec")
<br><br>then i defined the network dependent variables <br><br>> setting <- sienaNet(array(c(setting1,setting2,setting3),dim=c(nrhosp,nrspec,3)),"bipartite",nodeSet=c("hosp","spec"))
<br>> exchange <- sienaNet(array(c(exchange1, exchange2,exchange3),dim=c(nrhosp,nrhosp,3)),nodeSet="hosp")
<br><br>then I imported the dyadic covariate (among others)<br><br>> geodist <- coDyadCovar(as.matrix(read.table("geo_dist.txt")),nodeSet="hosp")<br><br>then I combined the data<br><br>> bipData <- sienaDataCreate(exchange,setting,geodist,lhu,policl,nbeds,nspec,occrate,degmedia,icm, nodeSets=list(hosp,spec))<br>
<br><br>which gives me the following error:<br><br>Error in validNodeSet(nattr[2], ncol(thisdycCovar)) : node set not found<br><br>if I remove the dyadic covariate then it works perfectly fine.<br><br>Can you please help on that?<br>
<br>Thanks a lot.<br><br>Marco<br><br><br><br><br><br>