<?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 glimmix beta distribution covariance parameters &amp;amp; heritability in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-beta-distribution-covariance-parameters-amp/m-p/681594#M32756</link>
    <description>&lt;P&gt;This may be just whistling in the dark, but I don't see a way to "back-transform" the variance components to the original scale in any meaningful way that still preserves the modeling applied.&amp;nbsp; If you have such a method, I would be curious to see it in action.&amp;nbsp; My inclination, given that you have a method, would be to calculate the heritability using the result VCs and the "original scale" VCs and see which makes more sense biologically.&amp;nbsp; This is a great question, and may well have been addressed in the R community.&amp;nbsp; Have you checked there?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2020 11:23:55 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2020-09-04T11:23:55Z</dc:date>
    <item>
      <title>proc glimmix beta distribution covariance parameters &amp; heritability</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-beta-distribution-covariance-parameters-amp/m-p/681462#M32750</link>
      <description>&lt;P&gt;Good afternoon,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for providing this SAS support online platform. I would be grateful if anyone could help me with this question.&lt;/P&gt;&lt;P&gt;I am looking at obtaining the broad sense heritability of a plant trait y measured under field conditions in four different environments, using proc glimmix and the heritability concept and basic SAS code (proc mixed) presented by Holland et al 2010.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The random effects of my model include: environment, rep(environment), genotype, genotype*environment and the covariance parameters are environment, rep(environment), genotype (Vg), genotype*environment (Vge) error (Vr).&lt;/P&gt;&lt;P&gt;The idea is to retrieve the estimate of the covariance parameters and obtain the heritability estimates via the formula : h2 = Vg / (Vge + Vg + Vr).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The traits I am looking at corresponds to proportion data so I am specifying a beta distribution with a logit link.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no problem using this code and obtaining my estimates with a normal or lognormal distributions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am wondering if any post-processing of the estimates of the covariance parameters are necessary under the beta distribution before being able to compute the heritability.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see my code below. Thank you for your support, Daisy&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data first; 
input env$ rep$ genotype$ RG; 
datalines;

[...]

run;&amp;nbsp;

*Estimate heritability from proc glimmix ;
proc glimmix data = first asycov; 
title 'estimating heritability &amp;amp; covtest in Mixed Model';
class env rep genotype ; 
model y = /dist = beta link = logit ; 
random env rep(env) genotype genotype*env ;
ods exclude AsyCov CovParm; 
ods output asycov = gl_covmat covparms = gl_estmat;
Run;

Data gl_estmat (drop=StdErr);
set gl_estmat;
Run;




proc iml;
start seh(V, C, LG, LP, H, SE, Vp, Vg) ;
Vp = LP`*V;
Vg = LG`*V;
H = VG/Vp;
d = (1/Vp)*(LG - (LP*H));
VH = d`*C*d;
SE = sqrt(VH);
finish seh;

use gl_estmat; 
read all into V; 
use gl_covmat; 
read all into C;

* Note that SAS introduces an extra first column into the matrix which must be removed;
C = C(|1:nrow(C), 2:ncol(C)|);

*order of variance components in v and c matrices is V(E), V(RnestedinE), V(G), V(GE), V(error); *[P=G+GE+error];
LG = {0, 0, 1, 0, 0};
LP = {0, 0, 1, 1, 1};
call seh(V, C, LG, LP, H, SE, Vp, Vg);
print "Heritability on a Plot Basis", H, SE, Vp, Vg;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Sep 2020 18:47:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-beta-distribution-covariance-parameters-amp/m-p/681462#M32750</guid>
      <dc:creator>DaisyA</dc:creator>
      <dc:date>2020-09-03T18:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc glimmix beta distribution covariance parameters &amp; heritability</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-beta-distribution-covariance-parameters-amp/m-p/681594#M32756</link>
      <description>&lt;P&gt;This may be just whistling in the dark, but I don't see a way to "back-transform" the variance components to the original scale in any meaningful way that still preserves the modeling applied.&amp;nbsp; If you have such a method, I would be curious to see it in action.&amp;nbsp; My inclination, given that you have a method, would be to calculate the heritability using the result VCs and the "original scale" VCs and see which makes more sense biologically.&amp;nbsp; This is a great question, and may well have been addressed in the R community.&amp;nbsp; Have you checked there?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 11:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-beta-distribution-covariance-parameters-amp/m-p/681594#M32756</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-09-04T11:23:55Z</dc:date>
    </item>
  </channel>
</rss>

