<?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: Descriptive Stats with Only with the Final Sample in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Descriptive-Stats-with-Only-with-the-Final-Sample/m-p/815045#M40230</link>
    <description>&lt;P&gt;Use the OUTPUT statement to create a data set with the output data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the documentation:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm;
   class a b;
   model y=a b a*b;
   output out=new p=yhat r=resid stdr=eresid;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;These statements create an output data set named&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="aa-filename"&gt;new&lt;/CODE&gt;&lt;SPAN&gt;. &lt;STRONG&gt;In addition to all the variables from the original data set,&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="aa-filename"&gt;new&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;contains the variable&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="aa-varname"&gt;yhat&lt;/CODE&gt;&lt;SPAN&gt;, with values that are predicted values of the dependent variable&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="aa-varname"&gt;y&lt;/CODE&gt;&lt;SPAN&gt;; the variable&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="aa-varname"&gt;resid&lt;/CODE&gt;&lt;SPAN&gt;, with values that are the residual values of&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="aa-varname"&gt;y&lt;/CODE&gt;&lt;SPAN&gt;; and the variable&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="aa-varname"&gt;eresid&lt;/CODE&gt;&lt;SPAN&gt;, with values that are the standard errors of the residuals.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It will have the data used for the model that you can identify if it has a predicted value, or may even just include only those observations, can't recall exactly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then you can use that &lt;STRONG&gt;new&lt;/STRONG&gt; data set to input to your correlation or statistical procedures.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/424897"&gt;@Heejeong&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a dataset that contains a total of 2266 participants. After running a PROC GLM analysis, however, the total number of observations used equals 568 participants. I want to run some basic correlations with the final sample to include in my manuscript and I was wondering how I can go about running a correlation (or descriptive analysis) just with this final sample of 568 participants who were included in the final analysis?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance for your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 16:13:50 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-05-25T16:13:50Z</dc:date>
    <item>
      <title>Descriptive Stats with Only with the Final Sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Descriptive-Stats-with-Only-with-the-Final-Sample/m-p/815041#M40228</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset that contains a total of 2266 participants. After running a PROC GLM analysis, however, the total number of observations used equals 568 participants. I want to run some basic correlations with the final sample to include in my manuscript and I was wondering how I can go about running a correlation (or descriptive analysis) just with this final sample of 568 participants who were included in the final analysis?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 May 2022 16:02:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Descriptive-Stats-with-Only-with-the-Final-Sample/m-p/815041#M40228</guid>
      <dc:creator>Heejeong</dc:creator>
      <dc:date>2022-05-25T16:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Descriptive Stats with Only with the Final Sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Descriptive-Stats-with-Only-with-the-Final-Sample/m-p/815044#M40229</link>
      <description>&lt;P&gt;Generally the exclusion of records means that one or more variables used on the MODEL statement is missing for the excluded records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try something like this dummy code to select the records with none of the variables missing. Obviously replace the have set with your data and the variable names with all of the variables on your model statement.&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   where not missing(var1) and not missing(var2) and not missing(var3);
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 May 2022 16:13:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Descriptive-Stats-with-Only-with-the-Final-Sample/m-p/815044#M40229</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-05-25T16:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Descriptive Stats with Only with the Final Sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Descriptive-Stats-with-Only-with-the-Final-Sample/m-p/815045#M40230</link>
      <description>&lt;P&gt;Use the OUTPUT statement to create a data set with the output data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the documentation:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm;
   class a b;
   model y=a b a*b;
   output out=new p=yhat r=resid stdr=eresid;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;These statements create an output data set named&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="aa-filename"&gt;new&lt;/CODE&gt;&lt;SPAN&gt;. &lt;STRONG&gt;In addition to all the variables from the original data set,&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="aa-filename"&gt;new&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;contains the variable&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="aa-varname"&gt;yhat&lt;/CODE&gt;&lt;SPAN&gt;, with values that are predicted values of the dependent variable&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="aa-varname"&gt;y&lt;/CODE&gt;&lt;SPAN&gt;; the variable&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="aa-varname"&gt;resid&lt;/CODE&gt;&lt;SPAN&gt;, with values that are the residual values of&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="aa-varname"&gt;y&lt;/CODE&gt;&lt;SPAN&gt;; and the variable&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="aa-varname"&gt;eresid&lt;/CODE&gt;&lt;SPAN&gt;, with values that are the standard errors of the residuals.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It will have the data used for the model that you can identify if it has a predicted value, or may even just include only those observations, can't recall exactly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then you can use that &lt;STRONG&gt;new&lt;/STRONG&gt; data set to input to your correlation or statistical procedures.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/424897"&gt;@Heejeong&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a dataset that contains a total of 2266 participants. After running a PROC GLM analysis, however, the total number of observations used equals 568 participants. I want to run some basic correlations with the final sample to include in my manuscript and I was wondering how I can go about running a correlation (or descriptive analysis) just with this final sample of 568 participants who were included in the final analysis?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance for your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 16:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Descriptive-Stats-with-Only-with-the-Final-Sample/m-p/815045#M40230</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-05-25T16:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Descriptive Stats with Only with the Final Sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Descriptive-Stats-with-Only-with-the-Final-Sample/m-p/815050#M40232</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It will have the data used for the model that you can identify if it has a predicted value, or may even just include only those observations, can't recall exactly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If the ONLY missing variable(s) on the model statement are the dependent variables there will be a predicted value.&amp;nbsp; So you would need to select records where missing the dependent that include a predicted value.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 16:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Descriptive-Stats-with-Only-with-the-Final-Sample/m-p/815050#M40232</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-05-25T16:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Descriptive Stats with Only with the Final Sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Descriptive-Stats-with-Only-with-the-Final-Sample/m-p/815242#M40245</link>
      <description>&lt;P&gt;Thank you all so much for your fast and helpful comments!&lt;/P&gt;&lt;P&gt;All of your comments helped me address my problems but I had to choose one so I chose the very first response.&lt;/P&gt;&lt;P&gt;Thanks again for all your help!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 15:51:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Descriptive-Stats-with-Only-with-the-Final-Sample/m-p/815242#M40245</guid>
      <dc:creator>Heejeong</dc:creator>
      <dc:date>2022-05-26T15:51:43Z</dc:date>
    </item>
  </channel>
</rss>

