<?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: Create dataset of observations used in proc glm when absorb is used in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/736491#M229436</link>
    <description>&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2021 18:34:50 GMT</pubDate>
    <dc:creator>mct2181</dc:creator>
    <dc:date>2021-04-22T18:34:50Z</dc:date>
    <item>
      <title>Create dataset of observations used in proc glm when absorb is used</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/734879#M228933</link>
      <description>&lt;P&gt;I am running a series of nested fixed effects models using proc glm with the "absorb" command. To ensure each model is analyzing the same set of observations, I am trying to create a new dataset/output of only the observations that are included in my most restricted model (most variables in the model). Apparently, "&lt;SPAN&gt;Output data set not available when absorption is used."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are there any other ways to do this??&lt;BR /&gt;&lt;BR /&gt;My most restricted model looks like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc glm data=long0f_b;&lt;BR /&gt;absorb hhidpn;&lt;BR /&gt;model cog = soc6 age baseage*age dummy2020 soc6*dummy2020 / solution;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2021 16:19:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/734879#M228933</guid>
      <dc:creator>mct2181</dc:creator>
      <dc:date>2021-04-17T16:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create dataset of observations used in proc glm when absorb is used</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/734880#M228934</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/378735"&gt;@mct2181&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am running a series of nested fixed effects models using proc glm with the "absorb" command. To ensure each model is analyzing the same set of observations, I am trying to create a new dataset/output of only the observations that are included in my most restricted model (most variables in the model). Apparently, "&lt;SPAN&gt;Output data set not available when absorption is used."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think that message is pretty clear. But ... the documentation says the same thing: "The GLM procedure cannot produce predicted values or least squares means (LS-means) or create an output data set of diagnostic values if an ABSORB statement is used."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Are there any other ways to do this??&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do what? Why do you feel you need ABSORB? What is the end goal of all of this analysis?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2021 16:32:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/734880#M228934</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-17T16:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create dataset of observations used in proc glm when absorb is used</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/734881#M228935</link>
      <description>My dataset has repeated measures in long format; I'm using absorb so that the analysis models avg within-person variation (hhidpn is the person-ID).&lt;BR /&gt;&lt;BR /&gt;The end goal of this particular question is to ensure that the model: cog = soc6 is only analyzing the same subsample of observations that are included in the multivariate models. I had originally thought to use output just to get the list of obs that are included in the most restricted model; I don't need any of the associated statistics like predicted values.</description>
      <pubDate>Sat, 17 Apr 2021 16:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/734881#M228935</guid>
      <dc:creator>mct2181</dc:creator>
      <dc:date>2021-04-17T16:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create dataset of observations used in proc glm when absorb is used</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/734882#M228936</link>
      <description>&lt;P&gt;Follow-up questions ... how many levels of the person ID?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I still don't see why you need to get "the list of obs that are included in the most restricted model" via the method you are describing. And why wouldn't an observation be included in that model?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2021 17:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/734882#M228936</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-17T17:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create dataset of observations used in proc glm when absorb is used</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/734884#M228938</link>
      <description>&lt;P&gt;There are some 4300 different hhidpns. A given hhidpn (participant) will only be included in this proc glm model if there are at least two separate observations (two different rows) with non-missing data for each variable in the model. As I include new variables, some of the HHIDPNs will get dropped from the model, because they don't have enough non-missing data to be included. I want to make sure I'm running every model on the exact same sample of participants. I definitely don't have to use output to get the that list - I just don't have an idea of another way to do it. Any suggestions are welcome and thank you so much for your help!&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2021 17:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/734884#M228938</guid>
      <dc:creator>mct2181</dc:creator>
      <dc:date>2021-04-17T17:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create dataset of observations used in proc glm when absorb is used</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/734895#M228942</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/378735"&gt;@mct2181&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;A given hhidpn (participant) will only be included in this proc glm model if there are at least two separate observations (two different rows) with non-missing data for each variable in the model. &lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Should this say "... at least two separate observations (two different rows) &lt;FONT color="#FF0000"&gt;where all model variables are non-missing&lt;/FONT&gt;"?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2021 18:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/734895#M228942</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-17T18:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create dataset of observations used in proc glm when absorb is used</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/734896#M228943</link>
      <description>Yes, that's correct!</description>
      <pubDate>Sat, 17 Apr 2021 19:00:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/734896#M228943</guid>
      <dc:creator>mct2181</dc:creator>
      <dc:date>2021-04-17T19:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create dataset of observations used in proc glm when absorb is used</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/734898#M228945</link>
      <description>&lt;P&gt;So you can find the list of IDs that have 2 records where all variables in the model are non-missing like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am going to type&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;... list of variables ...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where you should replace it with the actual list of variables (separated by a comma) in the next block of code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data is_missing;
    set have;
    miss = nmiss(... list of variables ...)&amp;gt;0;
run;
proc freq data=is_missing;
    tables hhidpn*miss/noprint&amp;nbsp;out=_a_;&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This output data set named _A_ is what you want. You want to select all the HHDIPNs where MISS=0 and COUNT&amp;gt;=2.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2021 19:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/734898#M228945</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-17T19:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create dataset of observations used in proc glm when absorb is used</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/736491#M229436</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 18:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-dataset-of-observations-used-in-proc-glm-when-absorb-is/m-p/736491#M229436</guid>
      <dc:creator>mct2181</dc:creator>
      <dc:date>2021-04-22T18:34:50Z</dc:date>
    </item>
  </channel>
</rss>

