<?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: Bayesian Analysis for pre-post data (one group paired difference) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-Analysis-for-pre-post-data-one-group-paired-difference/m-p/570388#M28179</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15889"&gt;@SWEETSAS&lt;/a&gt;&amp;nbsp;There is definitely a Bayesian form of two sided t-test (&lt;A href="https://www.tandfonline.com/doi/abs/10.1198/000313005X55233?journalCode=utas20" target="_blank"&gt;https://www.tandfonline.com/doi/abs/10.1198/000313005X55233?journalCode=utas20&lt;/A&gt;) However there is a possibility that I am reading the problem wrong here but when you say that you want to estimate "diff" using Bayesian, what do you mean? Is it with respect to some other variable or other distribution? In the absence of any other reference variable (or prior), the calculation of "diff" is exact. Do you want to see if the distribution of diff is coming from some other distribution? I am sorry, I am unable to still comprehend the requirement as I can not see a reference (prior). Please shed some more light (especially what is the primary question you are asking and what kind of solution will be able to answer that question).....&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2019 20:38:30 GMT</pubDate>
    <dc:creator>koyelghosh</dc:creator>
    <dc:date>2019-07-01T20:38:30Z</dc:date>
    <item>
      <title>Bayesian Analysis for pre-post data (one group paired difference)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-Analysis-for-pre-post-data-one-group-paired-difference/m-p/570017#M28176</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is is it possible to use any SAS procedure for one sample paired difference (pre-post) analysis. That is I want want to compute post minus pre value and the use Bayesian estimate of the mean of this difference. This is like doing pair t-test. I see the SAS documentation for PIOR statement that allows one to model variance component model, but this is different from the Bayesian estimate of pre-post difference. Any help will be appreciated. Bellow is what I have:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc mixed data=have;&lt;BR /&gt;class time (ref="0") subjid;&lt;BR /&gt;model diff=/ SOLUTION ;&lt;BR /&gt;random subjid;&lt;BR /&gt;prior jeffreys/ seed=5235 nmc=20000 out=posterior;&lt;BR /&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JJ&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jun 2019 01:08:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-Analysis-for-pre-post-data-one-group-paired-difference/m-p/570017#M28176</guid>
      <dc:creator>SWEETSAS</dc:creator>
      <dc:date>2019-06-29T01:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bayesian Analysis for pre-post data (one group paired difference)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-Analysis-for-pre-post-data-one-group-paired-difference/m-p/570037#M28177</link>
      <description>Please post few rows of data (if the data is not sensitive) + include an example outcome that you are expecting ... or ... you can try out PROC GENMOD on your own (&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_genmod_sect070.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_genmod_sect070.htm&lt;/A&gt;). Not sure if this PROC suits your requirements.&lt;BR /&gt;All the best.</description>
      <pubDate>Sat, 29 Jun 2019 11:59:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-Analysis-for-pre-post-data-one-group-paired-difference/m-p/570037#M28177</guid>
      <dc:creator>koyelghosh</dc:creator>
      <dc:date>2019-06-29T11:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Bayesian Analysis for pre-post data (one group paired difference)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-Analysis-for-pre-post-data-one-group-paired-difference/m-p/570367#M28178</link>
      <description>&lt;P&gt;Thanks. Here is example data.&lt;/P&gt;
&lt;P&gt;data have;&lt;/P&gt;
&lt;P&gt;input pre post;&lt;/P&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5.3 3.2&lt;/P&gt;
&lt;P&gt;4.4 1.6&lt;/P&gt;
&lt;P&gt;6.2 4.2&lt;/P&gt;
&lt;P&gt;7.5 3.2&lt;/P&gt;
&lt;P&gt;5.1 4.2&lt;/P&gt;
&lt;P&gt;3.1 5.3&lt;/P&gt;
&lt;P&gt;4.7 8.3&lt;/P&gt;
&lt;P&gt;7.3 4.0&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have2;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;diff=post-pre;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to estimate &lt;EM&gt;"diff"&lt;/EM&gt; &amp;nbsp;using Bayesian, if possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 19:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-Analysis-for-pre-post-data-one-group-paired-difference/m-p/570367#M28178</guid>
      <dc:creator>SWEETSAS</dc:creator>
      <dc:date>2019-07-01T19:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Bayesian Analysis for pre-post data (one group paired difference)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-Analysis-for-pre-post-data-one-group-paired-difference/m-p/570388#M28179</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15889"&gt;@SWEETSAS&lt;/a&gt;&amp;nbsp;There is definitely a Bayesian form of two sided t-test (&lt;A href="https://www.tandfonline.com/doi/abs/10.1198/000313005X55233?journalCode=utas20" target="_blank"&gt;https://www.tandfonline.com/doi/abs/10.1198/000313005X55233?journalCode=utas20&lt;/A&gt;) However there is a possibility that I am reading the problem wrong here but when you say that you want to estimate "diff" using Bayesian, what do you mean? Is it with respect to some other variable or other distribution? In the absence of any other reference variable (or prior), the calculation of "diff" is exact. Do you want to see if the distribution of diff is coming from some other distribution? I am sorry, I am unable to still comprehend the requirement as I can not see a reference (prior). Please shed some more light (especially what is the primary question you are asking and what kind of solution will be able to answer that question).....&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 20:38:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-Analysis-for-pre-post-data-one-group-paired-difference/m-p/570388#M28179</guid>
      <dc:creator>koyelghosh</dc:creator>
      <dc:date>2019-07-01T20:38:30Z</dc:date>
    </item>
  </channel>
</rss>

