<?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 proc glm in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm/m-p/730374#M35414</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My sample includes 779 observations and many different variables.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have fittet a generel linear regression model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to missing data in some variables the model only use 702 observations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm data=myapaf;&lt;BR /&gt;class jobkatreg genderkat ;&lt;BR /&gt;model ra=durationew age bmi family_status mg_adl_total isi_total genderkat jobkatreg&amp;nbsp; /solution clparm;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to describe these 702 persons (mean age etc.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to generate a dataset of these 702 persons?&amp;nbsp; Preferable in the code above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;</description>
    <pubDate>Wed, 31 Mar 2021 12:11:02 GMT</pubDate>
    <dc:creator>Lkahr</dc:creator>
    <dc:date>2021-03-31T12:11:02Z</dc:date>
    <item>
      <title>proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm/m-p/730374#M35414</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My sample includes 779 observations and many different variables.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have fittet a generel linear regression model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to missing data in some variables the model only use 702 observations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm data=myapaf;&lt;BR /&gt;class jobkatreg genderkat ;&lt;BR /&gt;model ra=durationew age bmi family_status mg_adl_total isi_total genderkat jobkatreg&amp;nbsp; /solution clparm;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to describe these 702 persons (mean age etc.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to generate a dataset of these 702 persons?&amp;nbsp; Preferable in the code above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 12:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glm/m-p/730374#M35414</guid>
      <dc:creator>Lkahr</dc:creator>
      <dc:date>2021-03-31T12:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm/m-p/730379#M35415</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=myapaf;
    class jobkatreg genderkat ;
    model ra=durationew age bmi family_status mg_adl_total isi_total genderkat jobkatreg  /solution clparm;
    output out=predicteds p=predicted;
run;
data want;
    set predicteds(where=(not missing(predicted)));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The output data set from PROC GLM contains all of your original variables, and a new column named PREDICTED which contains the predicted values. The variable PREDICTED will be missing if any one of the terms in the model are missing, so those are the records you don't want, or to say it the opposite way, you do want the records where PREDICTED is not missing.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 12:40:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glm/m-p/730379#M35415</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-03-31T12:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm/m-p/730393#M35416</link>
      <description>&lt;P&gt;Like&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;pointed out, you can use the OUTPUT statement to get what you wanted. But I would use the residuals rather than the predicted values to get the observations that are used in the analysis. This is because if the response variable is missing and none of the independent variables is missing, then this observation will not be used in the analysis but you would still get the predicted value for this observation. If you use the residuals, (output out=out r=residuals;)&amp;nbsp; you would correctly identify those observations included in the analysis (residuals not missing).&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 13:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glm/m-p/730393#M35416</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-03-31T13:53:50Z</dc:date>
    </item>
  </channel>
</rss>

