<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Id in solution output from random statement in PROC MIXED in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Id-in-solution-output-from-random-statement-in-PROC-MIXED/m-p/46389#M12360</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if it is possible to retain the original identification (&lt;EM&gt;Here: unikdyr&lt;/EM&gt;) from the dataset in the solution output from the random statement in PROC MIXED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ods output solutionR=sol;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ods trace on;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PROC MIXED data=b covtest ratio;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id unikdyr;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model ekm = dimund60 dimov60 / s ddfm=bw outp=predicted;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random dimund60 dimov60 int / type=un subject=unikdyr solution;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;odc trace off;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Solution output (sol) each individual now got a subject number, but I would like to be able to link that subjectnumber to an animalnumber (=unikdyr) because I want to use the random estimates in another model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any good ideas??&lt;/P&gt;&lt;P&gt;Thanks - Bodil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 10pt;"&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 10pt;"&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 10pt;"&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 10pt;"&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2012 13:00:21 GMT</pubDate>
    <dc:creator>Boni</dc:creator>
    <dc:date>2012-02-06T13:00:21Z</dc:date>
    <item>
      <title>Id in solution output from random statement in PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Id-in-solution-output-from-random-statement-in-PROC-MIXED/m-p/46389#M12360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if it is possible to retain the original identification (&lt;EM&gt;Here: unikdyr&lt;/EM&gt;) from the dataset in the solution output from the random statement in PROC MIXED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ods output solutionR=sol;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ods trace on;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PROC MIXED data=b covtest ratio;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id unikdyr;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model ekm = dimund60 dimov60 / s ddfm=bw outp=predicted;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random dimund60 dimov60 int / type=un subject=unikdyr solution;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;odc trace off;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Solution output (sol) each individual now got a subject number, but I would like to be able to link that subjectnumber to an animalnumber (=unikdyr) because I want to use the random estimates in another model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any good ideas??&lt;/P&gt;&lt;P&gt;Thanks - Bodil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 10pt;"&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 10pt;"&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 10pt;"&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 10pt;"&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2012 13:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Id-in-solution-output-from-random-statement-in-PROC-MIXED/m-p/46389#M12360</guid>
      <dc:creator>Boni</dc:creator>
      <dc:date>2012-02-06T13:00:21Z</dc:date>
    </item>
    <item>
      <title>Id in solution output from random statement in PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Id-in-solution-output-from-random-statement-in-PROC-MIXED/m-p/46390#M12361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Add a CLASS statement (I changed the ID statement to a CLASS statement, but you may need both for your outp= option statement):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PROC MIXED data=b covtest ratio;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class unikdyr;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model ekm = dimund60 dimov60 / s ddfm=bw outp=predicted;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random dimund60 dimov60 int / type=un subject=unikdyr solution;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The dataset sol should have what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2012 15:01:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Id-in-solution-output-from-random-statement-in-PROC-MIXED/m-p/46390#M12361</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-02-06T15:01:38Z</dc:date>
    </item>
    <item>
      <title>Id in solution output from random statement in PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Id-in-solution-output-from-random-statement-in-PROC-MIXED/m-p/46391#M12362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How simple... Sometimes I tend to complicate things... ;o)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2012 19:07:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Id-in-solution-output-from-random-statement-in-PROC-MIXED/m-p/46391#M12362</guid>
      <dc:creator>Boni</dc:creator>
      <dc:date>2012-02-06T19:07:25Z</dc:date>
    </item>
  </channel>
</rss>

