<?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 Re: PROC MIXED solutions for individuals without observations in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-solutions-for-individuals-without-observations/m-p/919780#M45676</link>
    <description>&lt;P&gt;Thank you, Mike. Actually, the original code works as intended (due to the pedigree matrix, I get solutions even for the animals without observations), but I made coding mistake. So, I can use both PROC MIXED and PROC GLIMMIX to obtain the same results. However, saving the matrices in GLIMMIX is a great feature and it is going to be really helpful for me.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2024 15:59:42 GMT</pubDate>
    <dc:creator>opiczak</dc:creator>
    <dc:date>2024-03-11T15:59:42Z</dc:date>
    <item>
      <title>PROC MIXED solutions for individuals without observations</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-solutions-for-individuals-without-observations/m-p/919097#M45635</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to recreate a BLUP animal model from&amp;nbsp;&lt;EM&gt;Tempelman, R. J. and Rosa, G. J. M. Empirical Bayes Approaches to Mixed Model Inference in Quantitative Genetics. In: Genetic Analysis of Complex Traits Using SAS. Saxton, A. (Editor). Cary, NC: SAS Institute Inc., 2004.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They used a pedigree of 306 animals, out of which 282 animals have phenotypic records (y). The model has one fixed effect (generation) and one random effect (animal) with a covariance structure given by a relationship matrix (306x306). The most important bit of the code is:&lt;/P&gt;&lt;LI-CODE lang="sas"&gt;proc mixed data=meyer noprofile;
  class generation animal;
  model y = generation /solution noint covb;
  random animal /type=lin(1) LDATA=L2data solution; *L2data is an adjusted output from proc inbreed;
  parms (40) (50) /noiter;
run;&lt;/LI-CODE&gt;&lt;P&gt;The code works, but the problem is that I am getting only 282 solutions (breeding values), whereas the original contains 306 solutions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original dimensions:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Covariance Parameters 2&lt;/LI&gt;&lt;LI&gt;Columns in X 2&lt;/LI&gt;&lt;LI&gt;Columns in Z 306&lt;/LI&gt;&lt;LI&gt;Subjects 1&lt;/LI&gt;&lt;LI&gt;Max Obs Per Subject 306&lt;/LI&gt;&lt;LI&gt;Observations Used 282&lt;/LI&gt;&lt;LI&gt;Observations Not Used 24&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;My dimensions:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Covariance Parameters 2&lt;/LI&gt;&lt;LI&gt;Columns in X 2&lt;/LI&gt;&lt;LI&gt;Columns in Z 282&lt;/LI&gt;&lt;LI&gt;Subjects 1&lt;/LI&gt;&lt;LI&gt;Max Obs Per Subject 282&lt;/LI&gt;&lt;LI&gt;Number of Observations Read 306&lt;/LI&gt;&lt;LI&gt;Number of Observations Used 282&lt;/LI&gt;&lt;LI&gt;Number of Observations Not Used 24&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So, the real question is if I can make SAS to create the Z matrix with all 306 columns. Also, is this a version issue? I am using SAS 9.4, but I guess the authors created the code about 25 years ago.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 13:00:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-solutions-for-individuals-without-observations/m-p/919097#M45635</guid>
      <dc:creator>opiczak</dc:creator>
      <dc:date>2024-03-06T13:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED solutions for individuals without observations</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-solutions-for-individuals-without-observations/m-p/919524#M45656</link>
      <description>&lt;P&gt;In the code specified, you are including a random effect for each animal in your study. In general, if there are 282 animals with non-missing phenotypic records, you will get 282 random effects. I don't have access to the book you have referenced, so I'm not sure if the authors did some extra step to account for the missing data in the other 24 animals.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 18:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-solutions-for-individuals-without-observations/m-p/919524#M45656</guid>
      <dc:creator>Mike_N</dc:creator>
      <dc:date>2024-03-08T18:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED solutions for individuals without observations</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-solutions-for-individuals-without-observations/m-p/919627#M45659</link>
      <description>&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;P&gt;I could send you the source files, but I see no extra step in the code the authors provided. Here is the whole code:&lt;/P&gt;&lt;PRE&gt;options ls = 75 ps = 60 nodate pageno=1 ; 
&lt;BR /&gt;/* Input pedigree file Animal id in first field, sire id in second field, dam id in third field. If sire or dam is unknown, indicate with period '.' */ &lt;BR /&gt;data pedigree; 
 infile 'E:\meyer.ped'; 
 input animal sire dam; 
run; 
&lt;BR /&gt;proc inbreed data=pedigree covar outcov=amatrix; 
  var animal sire dam; 
run; 
&lt;BR /&gt;/* Input dataset with animal (1-306), generation (1 or 2) and y (data) Include base animals (1-24) with missing records (y = .) */
data meyer; 
 infile 'E:\meyer.dat'; 
 input animal generation y; 
run; &lt;BR /&gt;
/* Row numbers needed to be provided for pipelining numerator relationship matrix (A)from PROC INBREED into PROC MIXED */ 
data L2DATA; 
 set amatrix; 
 parm = 1; 
 row = _n_; 
run; &lt;BR /&gt;
/* Posterior inference on fixed and random effects treating variance components as known */
proc mixed data=meyer noprofile; 
 class generation animal; 
 model y = generation /solution noint covb; 
 random animal /type=lin(1) LDATA=L2data solution; 
 parms (40) (50) /noiter; 
 ods listing exclude solutionr; ods output solutionr = solutionr; 
run; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2024 09:17:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-solutions-for-individuals-without-observations/m-p/919627#M45659</guid>
      <dc:creator>opiczak</dc:creator>
      <dc:date>2024-03-09T09:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED solutions for individuals without observations</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-solutions-for-individuals-without-observations/m-p/919767#M45674</link>
      <description>&lt;P&gt;Ok, I think you can get the full Z matrix if you use PROC GLIMMIX to fit the mixed model. Have a look at this note:&amp;nbsp;&lt;A href="https://support.sas.com/kb/40/631.html" target="_self"&gt;40631 - How can I save the X and Z matrix from PROC MIXED or PROC GLIMMIX to a data set? (sas.com).&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 14:23:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-solutions-for-individuals-without-observations/m-p/919767#M45674</guid>
      <dc:creator>Mike_N</dc:creator>
      <dc:date>2024-03-11T14:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED solutions for individuals without observations</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-solutions-for-individuals-without-observations/m-p/919780#M45676</link>
      <description>&lt;P&gt;Thank you, Mike. Actually, the original code works as intended (due to the pedigree matrix, I get solutions even for the animals without observations), but I made coding mistake. So, I can use both PROC MIXED and PROC GLIMMIX to obtain the same results. However, saving the matrices in GLIMMIX is a great feature and it is going to be really helpful for me.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 15:59:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-solutions-for-individuals-without-observations/m-p/919780#M45676</guid>
      <dc:creator>opiczak</dc:creator>
      <dc:date>2024-03-11T15:59:42Z</dc:date>
    </item>
  </channel>
</rss>

