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>&gt; nrhosp &lt;- dim(exchange1)[1]
<br>&gt; nrspec &lt;- dim(setting1)[2]
<br>&gt; hosp &lt;- sienaNodeSet(nrhosp, nodeSetName=&quot;hosp&quot;)
<br>&gt; spec &lt;- sienaNodeSet(nrspec, nodeSetName=&quot;spec&quot;)
<br><br>then i defined the network dependent variables <br><br>&gt; setting &lt;- sienaNet(array(c(setting1,setting2,setting3),dim=c(nrhosp,nrspec,3)),&quot;bipartite&quot;,nodeSet=c(&quot;hosp&quot;,&quot;spec&quot;))
<br>&gt; exchange &lt;- sienaNet(array(c(exchange1, exchange2,exchange3),dim=c(nrhosp,nrhosp,3)),nodeSet=&quot;hosp&quot;)
<br><br>then I imported the dyadic covariate (among others)<br><br>&gt; geodist &lt;- coDyadCovar(as.matrix(read.table(&quot;geo_dist.txt&quot;)),nodeSet=&quot;hosp&quot;)<br><br>then I combined the data<br><br>&gt; bipData &lt;- 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>