<?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: Test for significant difference for experiment repeated over 3 days and measurements over 6 hour in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-significant-difference-for-experiment-repeated-over-3/m-p/840280#M41645</link>
    <description>&lt;P&gt;Here are some ideas to get you started.&lt;/P&gt;
&lt;P&gt;1. Change the data to "long" format, with a new variable 'Group' having values 'A' or 'B'.&lt;/P&gt;
&lt;P&gt;2. Rescale your responses.&amp;nbsp; All those zeroes are going to lead to very small values for the coefficients, and very large values for the variance-covariance matrix.&lt;/P&gt;
&lt;P&gt;3. Try using PROC MIXED to fit a doubly repeated measures model (Kronecker product), where the correlation between days is fit separately from the correlation between hours.&amp;nbsp; If that doesn't get you where you want to go, you might consider consolidating the time points into one variable, say hours since study start on Day 1.&amp;nbsp; Then Day effects and differences could be extracted by using CONTRAST or LSMESTIMATE statements.&lt;/P&gt;
&lt;P&gt;4. If you feel that a semiparametric method would be better, you might consider these new time points to be continuous, and fit a spline using the EFFECT statement in PROC GLIMMIX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2022 13:48:39 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2022-10-24T13:48:39Z</dc:date>
    <item>
      <title>Test for significant difference for experiment repeated over 3 days and measurements over 6 hours</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-significant-difference-for-experiment-repeated-over-3/m-p/840260#M41642</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;Hi SAS community,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;I have a dataset where I need to test whether there are significant differences between GroupA and GroupB. GroupA and GroupB are values obtained from an experiment that was repeated over 3 days (Day = 1, 2, 3). Measurements are obtained over 6 hours for each of the 3 days starting at 0 (Hour = 0, 1, 2, 3, 4, 5, 6).&amp;nbsp;My speciality is sampling (not this) and I know the basics of proc glm, proc mixed, proc anavo, proc ttest and so, but since the values are obtained hourly, the values per group are not independent of each other, so I don't think this proc glm or so will work. I was told that I will have to do survival analysis using proc PHReg. I don't know proc PHReg and am not sure if&amp;nbsp;survival analysis is the correct method to determine if the groups differ significantly from one another. Any assistance will be greatly appreciated.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;The code for the data is below:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;data Data1;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;input Day Hour GroupA GroupB;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;datalines;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;1 0 240000000 190000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;1 1 1000000000 4000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;1 2 800000000 13000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;1 3 23000000000 15000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;1 4 15000000000 30000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;1 5 24000000000 30000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;1 6 30000000000 30000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;2 0 9000000000 8000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;2 1 290000000 1900000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;2 2 5000000000 13000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;2 3 5000000000 30000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;2 4 25000000000 30000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;2 5 18000000000 30000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;2 6 30000000000 30000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;3 0 2200000000 30000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;3 1 1200000000 30000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;3 2 9000000000 10000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;3 3 21000000000 30000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;3 4 30000000000 30000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;3 5 30000000000 30000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;3 6 30000000000 30000000000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;Thank you so much,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;Francois&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 12:59:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-significant-difference-for-experiment-repeated-over-3/m-p/840260#M41642</guid>
      <dc:creator>FrancoisN</dc:creator>
      <dc:date>2022-10-24T12:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Test for significant difference for experiment repeated over 3 days and measurements over 6 hour</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-significant-difference-for-experiment-repeated-over-3/m-p/840280#M41645</link>
      <description>&lt;P&gt;Here are some ideas to get you started.&lt;/P&gt;
&lt;P&gt;1. Change the data to "long" format, with a new variable 'Group' having values 'A' or 'B'.&lt;/P&gt;
&lt;P&gt;2. Rescale your responses.&amp;nbsp; All those zeroes are going to lead to very small values for the coefficients, and very large values for the variance-covariance matrix.&lt;/P&gt;
&lt;P&gt;3. Try using PROC MIXED to fit a doubly repeated measures model (Kronecker product), where the correlation between days is fit separately from the correlation between hours.&amp;nbsp; If that doesn't get you where you want to go, you might consider consolidating the time points into one variable, say hours since study start on Day 1.&amp;nbsp; Then Day effects and differences could be extracted by using CONTRAST or LSMESTIMATE statements.&lt;/P&gt;
&lt;P&gt;4. If you feel that a semiparametric method would be better, you might consider these new time points to be continuous, and fit a spline using the EFFECT statement in PROC GLIMMIX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 13:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-significant-difference-for-experiment-repeated-over-3/m-p/840280#M41645</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-10-24T13:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Test for significant difference for experiment repeated over 3 days and measurements over 6 hour</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-significant-difference-for-experiment-repeated-over-3/m-p/841281#M41710</link>
      <description>&lt;P&gt;Thank you so much for the reply, I appreciate it. I have played around with proc mixed using the information you provided in point 3.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 09:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-significant-difference-for-experiment-repeated-over-3/m-p/841281#M41710</guid>
      <dc:creator>FrancoisN</dc:creator>
      <dc:date>2022-10-28T09:56:04Z</dc:date>
    </item>
  </channel>
</rss>

