<?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 Missing data methods in longitudinal studies - Milk Production - Dairy Farms in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Missing-data-methods-in-longitudinal-studies-Milk-Production/m-p/539867#M7138</link>
    <description>&lt;P&gt;Hello, I would like to help for analyzing of database in dairy farms (Longitudinal analysis).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my database, I have daily milk production for 115 days. However, some cows stop producing milk at 20d, 35d, 80 days (random days). Therefore, as time go on, naturally the cows production less milk until to stop completely the milk prodution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex: On the first day I have 1000 cows producing milk. At the end of the 115 days, only 150 cows remain producing milk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My greatest doubt occurs when an animal stops producing milk. As the cows are removed of the database (cows stop producing milk) the average from this moment changes (increases) causing to curve error (because the cows less productive stop the production).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I solve it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GLIMMIX DATA=Dairy.Cows;
	CLASS ID Group Time;
		MODEL MilkProduction = Group Time Group*Time / DDFM=KENWARDROGER DIST=GAUSSIAN ;
			RANDOM Time / RESIDUAL TYPE=UN SUBJECT=ID(Group);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data_Base.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27620i3656A93CB9ED5BD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Data_Base.JPG" alt="Data_Base.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Mar 2019 03:40:18 GMT</pubDate>
    <dc:creator>Rodolfo_Mingoti</dc:creator>
    <dc:date>2019-03-03T03:40:18Z</dc:date>
    <item>
      <title>Missing data methods in longitudinal studies - Milk Production - Dairy Farms</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Missing-data-methods-in-longitudinal-studies-Milk-Production/m-p/539867#M7138</link>
      <description>&lt;P&gt;Hello, I would like to help for analyzing of database in dairy farms (Longitudinal analysis).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my database, I have daily milk production for 115 days. However, some cows stop producing milk at 20d, 35d, 80 days (random days). Therefore, as time go on, naturally the cows production less milk until to stop completely the milk prodution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex: On the first day I have 1000 cows producing milk. At the end of the 115 days, only 150 cows remain producing milk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My greatest doubt occurs when an animal stops producing milk. As the cows are removed of the database (cows stop producing milk) the average from this moment changes (increases) causing to curve error (because the cows less productive stop the production).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I solve it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GLIMMIX DATA=Dairy.Cows;
	CLASS ID Group Time;
		MODEL MilkProduction = Group Time Group*Time / DDFM=KENWARDROGER DIST=GAUSSIAN ;
			RANDOM Time / RESIDUAL TYPE=UN SUBJECT=ID(Group);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data_Base.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27620i3656A93CB9ED5BD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Data_Base.JPG" alt="Data_Base.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2019 03:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Missing-data-methods-in-longitudinal-studies-Milk-Production/m-p/539867#M7138</guid>
      <dc:creator>Rodolfo_Mingoti</dc:creator>
      <dc:date>2019-03-03T03:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Missing data methods in longitudinal studies - Milk Production - Dairy Farms</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Missing-data-methods-in-longitudinal-studies-Milk-Production/m-p/539897#M7144</link>
      <description>&lt;P&gt;It looks like you might need a "time to failure" analysis, described in some detail here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stats.idre.ucla.edu/sas/seminars/sas-survival/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/seminars/sas-survival/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2019 14:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Missing-data-methods-in-longitudinal-studies-Milk-Production/m-p/539897#M7144</guid>
      <dc:creator>Norman21</dc:creator>
      <dc:date>2019-03-03T14:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Missing data methods in longitudinal studies - Milk Production - Dairy Farms</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Missing-data-methods-in-longitudinal-studies-Milk-Production/m-p/539939#M7152</link>
      <description>&lt;P&gt;&lt;SPAN style="margin: 0px; color: #333333; line-height: 107%; font-family: 'Helvetica',sans-serif; font-size: 10.5pt;"&gt;Hello Norman21, firstly thanks for your attention. I saw your recommendation about survival analysis using Proc Lifetest but unfortunately, that procedure is not that I need.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0px; color: #333333; line-height: 107%; font-family: 'Helvetica',sans-serif; font-size: 10.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0px; color: #333333; line-height: 107%; font-family: 'Helvetica',sans-serif; font-size: 10.5pt;"&gt;The topic listed is very close to what I need, but do not have the solution yet: &lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Using-PROC-NLIN-to-fit-curves-for-dairy-cattle-and-Proc-Gplot-to/m-p/435894/highlight/true#M23006" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Statistical-Procedures/Using-PROC-NLIN-to-fit-curves-for-dairy-cattle-and-Proc-Gplot-to/m-p/435894/highlight/true#M23006&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0px; color: #333333; line-height: 107%; font-family: 'Helvetica',sans-serif; font-size: 10.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0px; color: #333333; line-height: 107%; font-family: 'Helvetica',sans-serif; font-size: 10.5pt;"&gt;In my database, after the middle of lactation the numbers of cows decrease. The begin of lactation (day 1) I have 1000 observations (cows) and the end of lactation (day 115) I have only 150 observations. The response variable is milk_production (continuous variable).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0px; color: #333333; line-height: 107%; font-family: 'Helvetica',sans-serif; font-size: 10.5pt;"&gt;Some people said that I can not compare the groups, because I have not completed basedata. The solution for that is filter the dataset just for animal that have complete lactation. Using this methodology, I will lose information about 750 cows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0px; color: #333333; line-height: 107%; font-family: 'Helvetica',sans-serif; font-size: 10.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0px; color: #333333; line-height: 107%; font-family: 'Helvetica',sans-serif; font-size: 10.5pt;"&gt;My doubt is: Are there another way to solve it?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2019 21:10:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Missing-data-methods-in-longitudinal-studies-Milk-Production/m-p/539939#M7152</guid>
      <dc:creator>Rodolfo_Mingoti</dc:creator>
      <dc:date>2019-03-03T21:10:42Z</dc:date>
    </item>
  </channel>
</rss>

