<?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 GLMM with beta regression for proportional data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/GLMM-with-beta-regression-for-proportional-data/m-p/555435#M74714</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set with outcome as proportions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i saw the distribution of the outcome, it looked like Poisson distribution and hence did a GLMM with Poisson distribution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the reviewer for the manuscript did not accept this and has asked me to do GLMM with beta regression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is, the model wont run. PROC mixed and PROC GLMM (Poisson) runs ok. Not the beta regression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am adding the code i am using here. Any ideas will be welcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;glimmix&lt;/STRONG&gt; data=Cyril_nov29;&lt;/P&gt;&lt;P&gt;class Treatment Day Rep;&lt;/P&gt;&lt;P&gt;model freqsowcont= Treatment Day Treatment*Day/ddfm=kr dist=poisson link=log;&lt;/P&gt;&lt;P&gt;Random intercept/subject=Day(Treatment*Rep);&lt;/P&gt;&lt;P&gt;lsmeans Treatment Day Treatment*Day/pdiff lines ilink;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This one runs ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;glimmix&lt;/STRONG&gt; data=Cyril_nov29 order=formatted exphessian;&lt;/P&gt;&lt;P&gt;class Treatment Day Rep;&lt;/P&gt;&lt;P&gt;model freqsowcont= Treatment Day Treatment*Day/dist=beta solution link=logit s;&lt;/P&gt;&lt;P&gt;Random intercept/subject=Day(Treatment*Rep);&lt;/P&gt;&lt;P&gt;lsmeans Treatment Day Treatment*Day/pdiff lines ilink;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This doesnt run properly. Why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached data too as attachment, if anybody want to try it. Please use the first excel sheet (group)&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2019 17:53:30 GMT</pubDate>
    <dc:creator>rroy</dc:creator>
    <dc:date>2019-05-01T17:53:30Z</dc:date>
    <item>
      <title>GLMM with beta regression for proportional data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/GLMM-with-beta-regression-for-proportional-data/m-p/555435#M74714</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set with outcome as proportions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i saw the distribution of the outcome, it looked like Poisson distribution and hence did a GLMM with Poisson distribution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the reviewer for the manuscript did not accept this and has asked me to do GLMM with beta regression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is, the model wont run. PROC mixed and PROC GLMM (Poisson) runs ok. Not the beta regression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am adding the code i am using here. Any ideas will be welcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;glimmix&lt;/STRONG&gt; data=Cyril_nov29;&lt;/P&gt;&lt;P&gt;class Treatment Day Rep;&lt;/P&gt;&lt;P&gt;model freqsowcont= Treatment Day Treatment*Day/ddfm=kr dist=poisson link=log;&lt;/P&gt;&lt;P&gt;Random intercept/subject=Day(Treatment*Rep);&lt;/P&gt;&lt;P&gt;lsmeans Treatment Day Treatment*Day/pdiff lines ilink;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This one runs ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;glimmix&lt;/STRONG&gt; data=Cyril_nov29 order=formatted exphessian;&lt;/P&gt;&lt;P&gt;class Treatment Day Rep;&lt;/P&gt;&lt;P&gt;model freqsowcont= Treatment Day Treatment*Day/dist=beta solution link=logit s;&lt;/P&gt;&lt;P&gt;Random intercept/subject=Day(Treatment*Rep);&lt;/P&gt;&lt;P&gt;lsmeans Treatment Day Treatment*Day/pdiff lines ilink;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This doesnt run properly. Why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached data too as attachment, if anybody want to try it. Please use the first excel sheet (group)&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 17:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/GLMM-with-beta-regression-for-proportional-data/m-p/555435#M74714</guid>
      <dc:creator>rroy</dc:creator>
      <dc:date>2019-05-01T17:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: GLMM with beta regression for proportional data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/GLMM-with-beta-regression-for-proportional-data/m-p/555477#M74715</link>
      <description>&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If code doesn't provide the desired output it is often very helpful to copy the code and any messages from the log and paste into a code box here opened using the forum's {I} or "running man" icons to preserve formatting of any messages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 20:28:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/GLMM-with-beta-regression-for-proportional-data/m-p/555477#M74715</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-01T20:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: GLMM with beta regression for proportional data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/GLMM-with-beta-regression-for-proportional-data/m-p/555481#M74716</link>
      <description>&lt;P&gt;Thanks for the response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have posted my code and attached my data file. Why i should do it again?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cyril&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 20:36:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/GLMM-with-beta-regression-for-proportional-data/m-p/555481#M74716</guid>
      <dc:creator>rroy</dc:creator>
      <dc:date>2019-05-01T20:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: GLMM with beta regression for proportional data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/GLMM-with-beta-regression-for-proportional-data/m-p/555507#M74717</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/272516"&gt;@rroy&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for the response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have posted my code and attached my data file. Why i should do it again?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cyril&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;1) you did not post a useable SAS data set. If I have to turn an XLSX into a data set I may make choices that mean the data I create is not the same as yours.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Posting the LOG results of code plus messages lets us see any diagnostics provided by SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Doesn't&amp;nbsp;run properly"&amp;nbsp;is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the {i} to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? We need input data, what the unexpected result is and why you think it is unexpected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example: data&lt;/P&gt;
&lt;PRE&gt;data example; 
   input x $ y z;
datalines;
1 2 3
4 5 6
;
run;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;PRE&gt;661
662  proc means data=example mean sum;
663     var x y z;
ERROR: Variable x in list does not match type prescribed for this list.
664  run;

NOTE: The SAS System stopped processing this step because of errors.
&lt;/PRE&gt;
&lt;P&gt;And solution: Don't attempt to ask for the mean or sum of a character variable. Either read the data value for x as numeric, which would work in this case, or don't include X on the var statement in proc means.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can easily get values form Excel files that you think should be numeric but end up as character (or vice versa) depending on how you read them into SAS. Problems with Excel data is one of the most common questions on this forum.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 23:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/GLMM-with-beta-regression-for-proportional-data/m-p/555507#M74717</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-01T23:15:18Z</dc:date>
    </item>
  </channel>
</rss>

