<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-forward-container">Dear Daniel,<br>
      <br>
      The SIENA Manual actually provides instructions of who to deal
      with the problem of leaving and joining actors. The relevant
      sections are "4.1.2 Structurally determined values" and "4.8
      Composition change: joiners and leavers". In general, you either
      specify an actor as absent from the network by setting the value
      of his ties as "structural zeros", you set ties of absent actors
      to missing or you specify absent actors with
      sienaCompositionChangeFromFile or sienaCompositionChange.<br>
      <br>
      If I understand you correctly you transform your adjacency matrix
      into an igraph object, subset for your desired attributes, then
      back into an adjacency matrix and on the way you lose some of your
      actors? You could insert rows and columns by hand (insertCol and
      insertRow from the micEcon package do that), but that seems rather
      cumbersome. Have you tried subsetting your ties directly from the
      adjacency matrix? Maybe transforming your year attribute in an
      attribute matrix and then using that to subset your original
      matrix?<br>
      <br>
      <br>
      Hope that helps,<br>
      Christoph Stich<br>
      MSc candidate Urban Studies, University of Amsterdam<br>
      <br>
      <br>
      <br>
      <div class="gmail_quote">On Fri, Nov 30, 2012 at 3:00 AM, <span
          dir="ltr"><<a moz-do-not-send="true"
            href="mailto:rsiena-help-request@lists.r-forge.r-project.org"
            target="_blank">rsiena-help-request@lists.r-forge.r-project.org</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">Send
          Rsiena-help mailing list submissions to<br>
                  <a moz-do-not-send="true"
            href="mailto:rsiena-help@lists.r-forge.r-project.org">rsiena-help@lists.r-forge.r-project.org</a><br>
          <br>
          To subscribe or unsubscribe via the World Wide Web, visit<br>
                  <a moz-do-not-send="true"
href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rsiena-help"
            target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rsiena-help</a><br>
          <br>
          or, via email, send a message with subject or body 'help' to<br>
                  <a moz-do-not-send="true"
            href="mailto:rsiena-help-request@lists.r-forge.r-project.org">rsiena-help-request@lists.r-forge.r-project.org</a><br>
          <br>
          You can reach the person managing the list at<br>
                  <a moz-do-not-send="true"
            href="mailto:rsiena-help-owner@lists.r-forge.r-project.org">rsiena-help-owner@lists.r-forge.r-project.org</a><br>
          <br>
          When replying, please edit your Subject line so it is more
          specific<br>
          than "Re: Contents of Rsiena-help digest..."<br>
          <br>
          <br>
          Today's Topics:<br>
          <br>
             1. Transform 1-mode edgelist to adjacency matrix (Daniel
          Stefan Hain)<br>
          <br>
          <br>
----------------------------------------------------------------------<br>
          <br>
          Message: 1<br>
          Date: Thu, 29 Nov 2012 15:24:03 +0000<br>
          From: Daniel Stefan Hain <<a moz-do-not-send="true"
            href="mailto:dsh@business.aau.dk">dsh@business.aau.dk</a>><br>
          To: "<a moz-do-not-send="true"
            href="mailto:rsiena-help@lists.r-forge.r-project.org">rsiena-help@lists.r-forge.r-project.org</a>"<br>
                  <<a moz-do-not-send="true"
            href="mailto:rsiena-help@lists.r-forge.r-project.org">rsiena-help@lists.r-forge.r-project.org</a>><br>
          Subject: [Rsiena-help] Transform 1-mode edgelist to adjacency
          matrix<br>
          Message-ID:<br>
                  <<a moz-do-not-send="true"
href="mailto:5C7C94834D71E144B9351830389C46BCFCDBFFC1@AD-EXCHMBX2-4.aau.dk">5C7C94834D71E144B9351830389C46BCFCDBFFC1@AD-EXCHMBX2-4.aau.dk</a>><br>
          Content-Type: text/plain; charset="iso-8859-1"<br>
          <br>
          Hi dear RSiena community,<br>
          <br>
          I currently have the following problem. I am conducting a
          dynamic analysis on cooperation in research project on basis
          of a directed edgelist that looks like follows:<br>
          <br>
          "Project leader"               "Project partner"            
          "Year"                   "Some more attributes"<br>
          Firm X                                   Firm Y              
                               2000<br>
          Firm A                                   Firm X              
                              2005<br>
          ...<br>
          <br>
          I want to divide the dataset into 3-4 subsets for different
          periods, lets say 2000-2002, 2003- 2005 ect. That's not the
          challenge (subseting in [R]), but then my problem is the
          following:<br>
          <br>
          1.: How can I create a directed and weighted adjacency matrix
          out of this data structure for every single time period?  Up
          to now I managed it with transforming it to an IGraph object
          and then back into an adjacency matrix. That works,  but the
          resulting matrix for the selected timeframe does not contain
          all actors from the whole dataset, thus the resulting
          adjacency matrixes  as input for RSiena all have different
          dimensions.<br>
          <br>
          I up to now worked with 2-mode edgelists, there I just could
          tabulate the dataframe and multiply it with the transposed one
          to get the adjacency matrix. When I used subsets for the
          different time period, I could exploit the fact that R still
          keeps the index of everything that drops out of the subset,
          but shows up in the cross-tab and therefore in the adjacency
          again.<br>
          <br>
          With a 1-mode edgelist it obviously does not work. Any advice
          is appreciated!<br>
          <br>
          Vest wishes<br>
          <br>
          Daniel S. Hain<br>
          PhD Fellow, M.Sc. Economics, Dipl.-Wirt.-Ing.<br>
          _______________________________________<br>
          Innovation, Knowledge and Economic Dynamics (IKE) Group<br>
          Strategic Research Alliance for Energy Innovation Systems
          (EIS)<br>
          Department of Business and Management<br>
          Aalborg University<br>
          Fibigerstraede 4, Room 16a<br>
          9220 Aalborg ?st, Denmark<br>
          <br>
          Tel.:    +45 9940 2724<br>
          Email:  <a moz-do-not-send="true"
            href="mailto:dsh@business.aau.dk">dsh@business.aau.dk</a><mailto:<a
            moz-do-not-send="true" href="mailto:dsh@business.aau.dk">dsh@business.aau.dk</a>><br>
          Web:   <a moz-do-not-send="true"
            href="http://www.business.aau.dk" target="_blank">www.business.aau.dk</a><<a
            moz-do-not-send="true" href="http://www.business.aau.dk"
            target="_blank">http://www.business.aau.dk</a>><br>
          <br>
          -------------- next part --------------<br>
          An HTML attachment was scrubbed...<br>
          URL: <<a moz-do-not-send="true"
href="http://lists.r-forge.r-project.org/pipermail/rsiena-help/attachments/20121129/ba8c60bd/attachment-0001.html"
            target="_blank">http://lists.r-forge.r-project.org/pipermail/rsiena-help/attachments/20121129/ba8c60bd/attachment-0001.html</a>><br>
          <br>
          ------------------------------<br>
          <br>
          _______________________________________________<br>
          Rsiena-help mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:Rsiena-help@lists.r-forge.r-project.org">Rsiena-help@lists.r-forge.r-project.org</a><br>
          <a moz-do-not-send="true"
href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rsiena-help"
            target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rsiena-help</a><br>
          <br>
          End of Rsiena-help Digest, Vol 28, Issue 1<br>
          ******************************************<br>
        </blockquote>
      </div>
      <br>
      <br>
    </div>
    <br>
  </body>
</html>