<?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: Linear regression of one sample pre- /post- data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-of-one-sample-pre-post-data/m-p/887592#M43949</link>
    <description>Thank you so much!</description>
    <pubDate>Wed, 02 Aug 2023 22:27:02 GMT</pubDate>
    <dc:creator>zta3</dc:creator>
    <dc:date>2023-08-02T22:27:02Z</dc:date>
    <item>
      <title>Linear regression of one sample pre- /post- data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-of-one-sample-pre-post-data/m-p/887352#M43927</link>
      <description>&lt;P&gt;Hi group,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a clinical dataset with about 80 patients. They had a baseline score (pre-intervention score) and a post intervention score. I used paired t test to compare the mean difference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I need to get parameter estimate (&lt;SPAN&gt;coefficient) of the post&amp;nbsp;score&amp;nbsp; in a linear model and possibly add multiple covariates in later. &amp;nbsp;To my knowledge, &amp;nbsp;I can't really use ANCOVA,&amp;nbsp;because it requires post-score as the dependent&amp;nbsp;variable, and pre-score as the predictor. I also thought of using the difference of pre-/post- score as the outcome, but i'm not sure what the predictor would be in that model.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm planning on using proc glm. So the code will be&amp;nbsp;something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"proc glm data=have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;model difference= ? /clparam;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So in short, I want to test the effect of intervention in score.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for any tips and helps!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 18:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-of-one-sample-pre-post-data/m-p/887352#M43927</guid>
      <dc:creator>zta3</dc:creator>
      <dc:date>2023-08-01T18:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression of one sample pre- /post- data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-of-one-sample-pre-post-data/m-p/887362#M43930</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Now I need to get parameter estimate (&lt;/SPAN&gt;&lt;SPAN&gt;coefficient) of the post&amp;nbsp;score&amp;nbsp; in a linear model&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What linear model are you thinking about? What is the independent (or predictor) variable? What is the response variable?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We can't really tell you what the model is, it's your problem and your data, you have to tell us what the model is.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 18:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-of-one-sample-pre-post-data/m-p/887362#M43930</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-08-01T18:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression of one sample pre- /post- data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-of-one-sample-pre-post-data/m-p/887457#M43941</link>
      <description>&lt;P&gt;It sounds like your response variable is the (post-pre) difference. If Diff is that difference, then you can include covariates (age, sex, ....) in GLM like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=Have;
class Sex;
model Diff = Age Sex / solution;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Aug 2023 10:11:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-of-one-sample-pre-post-data/m-p/887457#M43941</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-08-02T10:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression of one sample pre- /post- data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-of-one-sample-pre-post-data/m-p/887464#M43942</link>
      <description>I think you could try GEE model.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/46/997.html" target="_blank"&gt;https://support.sas.com/kb/46/997.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/23/127.html" target="_blank"&gt;https://support.sas.com/kb/23/127.html&lt;/A&gt;</description>
      <pubDate>Wed, 02 Aug 2023 11:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-of-one-sample-pre-post-data/m-p/887464#M43942</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-08-02T11:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression of one sample pre- /post- data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-of-one-sample-pre-post-data/m-p/887514#M43946</link>
      <description>&lt;P&gt;The main predictor would be the use of the intervention. So instead of using a paired t test, I'd like to see the effect in the linear model if it's possible.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm thinking&lt;/P&gt;&lt;P&gt;proc glm data=have;&lt;/P&gt;&lt;P&gt;model diff=/solution;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;Is it just basically a one sample ttest?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 15:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-of-one-sample-pre-post-data/m-p/887514#M43946</guid>
      <dc:creator>zta3</dc:creator>
      <dc:date>2023-08-02T15:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression of one sample pre- /post- data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-of-one-sample-pre-post-data/m-p/887529#M43947</link>
      <description>&lt;P&gt;Correct. If all you want to know is whether there is a significant difference in the means between the pre- and post-intervention scores, then you can use a one-sample t test on the paired differences.&amp;nbsp; The t test assumes that the population of difference is normally distributed. If you don't believe that assumption, you can use the nonparametric Wilcoxon signed rank test.&amp;nbsp; Both of these can be run in SAS by using PROC UNIVARIATE on the (post-pre) differences. See the first section of the article&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2023/07/19/wilcoxon-signed-rank.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2023/07/19/wilcoxon-signed-rank.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 17:08:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-of-one-sample-pre-post-data/m-p/887529#M43947</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-08-02T17:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression of one sample pre- /post- data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-of-one-sample-pre-post-data/m-p/887592#M43949</link>
      <description>Thank you so much!</description>
      <pubDate>Wed, 02 Aug 2023 22:27:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-of-one-sample-pre-post-data/m-p/887592#M43949</guid>
      <dc:creator>zta3</dc:creator>
      <dc:date>2023-08-02T22:27:02Z</dc:date>
    </item>
  </channel>
</rss>

