<?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: Number of people in a regression model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Number-of-people-in-a-regression-model/m-p/704944#M34113</link>
    <description>&lt;P&gt;In that post &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10078"&gt;@JacobSimonsen&lt;/a&gt; posted an example for one specific regression with a specific data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other regressions might have a similar behavior depending on data, regression procedure and options used.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 05:13:12 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-12-10T05:13:12Z</dc:date>
    <item>
      <title>Number of people in a regression model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Number-of-people-in-a-regression-model/m-p/704925#M34108</link>
      <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw this post previously and am wondering if the opposite is done:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Identifying-Unused-Observations-in-PROC-PHREG/td-p/143602" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/Identifying-Unused-Observations-in-PROC-PHREG/td-p/143602&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose I have a panel dataset, how can I determine how many people were included in my model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 04:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Number-of-people-in-a-regression-model/m-p/704925#M34108</guid>
      <dc:creator>CEdward</dc:creator>
      <dc:date>2020-12-10T04:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Number of people in a regression model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Number-of-people-in-a-regression-model/m-p/704929#M34109</link>
      <description>&lt;P&gt;Same logic:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the fact that residuals cannot be calculated for unused observations. Try adding the statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;output out=resOut resmart=resmart;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to the phreg procedure, and then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc print data=resOut; where resmart is NOT missing; run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to print the obs used, or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc sql;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;select count(resmart) as numberUsedInModel&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;from resOut;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to get the number of obs used.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 04:36:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Number-of-people-in-a-regression-model/m-p/704929#M34109</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-12-10T04:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Number of people in a regression model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Number-of-people-in-a-regression-model/m-p/704930#M34110</link>
      <description>&lt;P&gt;PGStats&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;I want to get the number of distinct individuals used rather than observations. I have used that method for observations already.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 04:42:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Number-of-people-in-a-regression-model/m-p/704930#M34110</guid>
      <dc:creator>CEdward</dc:creator>
      <dc:date>2020-12-10T04:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Number of people in a regression model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Number-of-people-in-a-regression-model/m-p/704941#M34111</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/360118"&gt;@CEdward&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;PGStats&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;I want to get the number of distinct individuals used rather than observations. I have used that method for observations already.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Does your data set have an individual identifier? Or group of variables that identify an individual? Then something like this gets the individuals, so you could use that as the basic for counting as a subquery.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; select distinct &amp;lt;variable(s) to identify an individual&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; from residualdataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; where not missing (residualvariable)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 05:04:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Number-of-people-in-a-regression-model/m-p/704941#M34111</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-10T05:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Number of people in a regression model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Number-of-people-in-a-regression-model/m-p/704942#M34112</link>
      <description>I suspected that was the solution. Thank you.&lt;BR /&gt;As an added safety check, I noticed a post in that original link which says that using the fact that residuals are not always calculated for lines with missing is not bullet proof. Would someone be able to confirm that?</description>
      <pubDate>Thu, 10 Dec 2020 05:06:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Number-of-people-in-a-regression-model/m-p/704942#M34112</guid>
      <dc:creator>CEdward</dc:creator>
      <dc:date>2020-12-10T05:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Number of people in a regression model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Number-of-people-in-a-regression-model/m-p/704944#M34113</link>
      <description>&lt;P&gt;In that post &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10078"&gt;@JacobSimonsen&lt;/a&gt; posted an example for one specific regression with a specific data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other regressions might have a similar behavior depending on data, regression procedure and options used.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 05:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Number-of-people-in-a-regression-model/m-p/704944#M34113</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-10T05:13:12Z</dc:date>
    </item>
  </channel>
</rss>

