<?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: Needing Help with Linear Regression For Only Specific Values in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Needing-Help-with-Linear-Regression-For-Only-Specific-Values/m-p/850505#M42109</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437376"&gt;@pauliet987&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need assistance with a linear regression code I am working. Essentially, I am trying to predict how many positive cases will occur the next week based on number of labs performed in previous weeks. Example:&lt;/P&gt;
&lt;P&gt;Week_Start&amp;nbsp; &amp;nbsp;Laboratory.&amp;nbsp; &amp;nbsp;Labs_Performed&amp;nbsp; Number_of_Positive_Cases&lt;/P&gt;
&lt;P&gt;11/04/2018.&amp;nbsp; &amp;nbsp;Lab1.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 230&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 31&lt;/P&gt;
&lt;P&gt;11/04/2018.&amp;nbsp; &amp;nbsp;Lab2.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 300.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;40&lt;/P&gt;
&lt;P&gt;11/11/2018.&amp;nbsp; &amp;nbsp;Lab1.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;260&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 45&lt;/P&gt;
&lt;P&gt;11/11/2018.&amp;nbsp; &amp;nbsp;Lab2.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;325.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;46&lt;/P&gt;
&lt;P&gt;I have a lot more variables than this. How would I go about doing a linear regression for just lab1 values and another linear regression with just lab2 values for the next week (week start 11/18/2018)?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for any help you can give!&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think some clarification would be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you trying to predict the number of positive cases for 11/18/2018 using just labs performed in the week of 11/11/2018? Or&amp;nbsp; does the prediction depend on both 11/04/2018 and 11/11/2018? How far back in time do we use the number of labs performed to get a prediction?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why linear regression and not some sort of time series?&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 17:49:51 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-12-20T17:49:51Z</dc:date>
    <item>
      <title>Needing Help with Linear Regression For Only Specific Values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Needing-Help-with-Linear-Regression-For-Only-Specific-Values/m-p/850498#M42108</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need assistance with a linear regression code I am working. Essentially, I am trying to predict how many positive cases will occur the next week based on number of labs performed in previous weeks. Example:&lt;/P&gt;&lt;P&gt;Week_Start&amp;nbsp; &amp;nbsp;Laboratory.&amp;nbsp; &amp;nbsp;Labs_Performed&amp;nbsp; Number_of_Positive_Cases&lt;/P&gt;&lt;P&gt;11/04/2018.&amp;nbsp; &amp;nbsp;Lab1.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 230&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 31&lt;/P&gt;&lt;P&gt;11/04/2018.&amp;nbsp; &amp;nbsp;Lab2.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 300.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;40&lt;/P&gt;&lt;P&gt;11/11/2018.&amp;nbsp; &amp;nbsp;Lab1.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;260&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 45&lt;/P&gt;&lt;P&gt;11/11/2018.&amp;nbsp; &amp;nbsp;Lab2.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;325.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;46&lt;/P&gt;&lt;P&gt;I have a lot more variables than this. How would I go about doing a linear regression for just lab1 values and another linear regression with just lab2 values for the next week (week start 11/18/2018)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help you can give!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 16:57:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Needing-Help-with-Linear-Regression-For-Only-Specific-Values/m-p/850498#M42108</guid>
      <dc:creator>pauliet987</dc:creator>
      <dc:date>2022-12-20T16:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Needing Help with Linear Regression For Only Specific Values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Needing-Help-with-Linear-Regression-For-Only-Specific-Values/m-p/850505#M42109</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437376"&gt;@pauliet987&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need assistance with a linear regression code I am working. Essentially, I am trying to predict how many positive cases will occur the next week based on number of labs performed in previous weeks. Example:&lt;/P&gt;
&lt;P&gt;Week_Start&amp;nbsp; &amp;nbsp;Laboratory.&amp;nbsp; &amp;nbsp;Labs_Performed&amp;nbsp; Number_of_Positive_Cases&lt;/P&gt;
&lt;P&gt;11/04/2018.&amp;nbsp; &amp;nbsp;Lab1.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 230&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 31&lt;/P&gt;
&lt;P&gt;11/04/2018.&amp;nbsp; &amp;nbsp;Lab2.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 300.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;40&lt;/P&gt;
&lt;P&gt;11/11/2018.&amp;nbsp; &amp;nbsp;Lab1.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;260&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 45&lt;/P&gt;
&lt;P&gt;11/11/2018.&amp;nbsp; &amp;nbsp;Lab2.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;325.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;46&lt;/P&gt;
&lt;P&gt;I have a lot more variables than this. How would I go about doing a linear regression for just lab1 values and another linear regression with just lab2 values for the next week (week start 11/18/2018)?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for any help you can give!&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think some clarification would be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you trying to predict the number of positive cases for 11/18/2018 using just labs performed in the week of 11/11/2018? Or&amp;nbsp; does the prediction depend on both 11/04/2018 and 11/11/2018? How far back in time do we use the number of labs performed to get a prediction?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why linear regression and not some sort of time series?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 17:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Needing-Help-with-Linear-Regression-For-Only-Specific-Values/m-p/850505#M42109</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-20T17:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Needing Help with Linear Regression For Only Specific Values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Needing-Help-with-Linear-Regression-For-Only-Specific-Values/m-p/850506#M42110</link>
      <description>&lt;P&gt;I am trying to predict the number of positive cases from all the previous weeks labs performed. This would go back about 6 months.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 18:00:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Needing-Help-with-Linear-Regression-For-Only-Specific-Values/m-p/850506#M42110</guid>
      <dc:creator>pauliet987</dc:creator>
      <dc:date>2022-12-20T18:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Needing Help with Linear Regression For Only Specific Values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Needing-Help-with-Linear-Regression-For-Only-Specific-Values/m-p/850508#M42111</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437376"&gt;@pauliet987&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to predict the number of positive cases from all the previous weeks labs performed. This would go back about 6 months.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This seems like a time series model, rather than a linear regression. To perform a linear regression, the number of previous weeks used in the prediction would have to be the same for every record, and that is not the case, based on your statement above.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 18:27:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Needing-Help-with-Linear-Regression-For-Only-Specific-Values/m-p/850508#M42111</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-20T18:27:06Z</dc:date>
    </item>
  </channel>
</rss>

