<?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: no observation in the dataset in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663179#M22758</link>
    <description>I also found that when LOG mentioned the dataset as "OUTCOME_JOINT_WKD_IND" rather than "NH.OUTCOME_JOINT_WKD_IND". Maybe this is the reason why it has 0 observations? but how can I fix it?</description>
    <pubDate>Thu, 18 Jun 2020 14:20:36 GMT</pubDate>
    <dc:creator>knighsson</dc:creator>
    <dc:date>2020-06-18T14:20:36Z</dc:date>
    <item>
      <title>no observation in the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663161#M22752</link>
      <description>&lt;P&gt;I run my code as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data nh.outcomes_joint_wkd_ind;&lt;BR /&gt;set nh.outcomes_joint_wkd_ind;&lt;BR /&gt;if alpha50=. then eligible=2;&lt;BR /&gt;else eligible=1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***SLR;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SURVEYREG DATA=nh.outcomes_joint_wkd_ind nomcar;&lt;BR /&gt;STRATA sdmvstra;&lt;BR /&gt;CLUSTER sdmvpsu;&lt;BR /&gt;CLASS alpha50;&lt;BR /&gt;WEIGHT glucwt4yr;&lt;BR /&gt;domain eligible;&lt;BR /&gt;model BMXBMI=alpha50/adjrsq clparm solution vadjust=none;&lt;BR /&gt;lsmeans alpha50/ lines adjust=tukey;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***** MLR;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SURVEYREG DATA=nh.outcomes_joint_wkd_ind nomcar;&lt;BR /&gt;STRATA sdmvstra;&lt;BR /&gt;CLUSTER sdmvpsu;&lt;BR /&gt;CLASS alpha50 age RIAGENDR PIR SDDSRVYR RIDRETH1;&lt;BR /&gt;WEIGHT glucwt4yr;&lt;BR /&gt;DOMAIN eligible;&lt;BR /&gt;model BMXBMI= age RIAGENDR PIR SDDSRVYR RIDRETH1 EIEER alpha50/adjrsq clparm solution vadjust=none;&lt;BR /&gt;lsmeans / lines adjust=tukey;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the log told me that for SLR:&amp;nbsp; All observations were omitted due to missing values or non-positive weights in domain eligible=2.&lt;/P&gt;&lt;P&gt;For MLR:&amp;nbsp; No observations in data set OUTCOMES_JOINT_WKD_IND.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also checked the data set, and it contains 20470 observations. I know there is something wrong with my code, but I don't know where and how. So can you point out where I was wrong and howto fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 13:35:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663161#M22752</guid>
      <dc:creator>knighsson</dc:creator>
      <dc:date>2020-06-18T13:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: no observation in the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663167#M22755</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;All observations were omitted due to missing values or non-positive weights in domain eligible=2.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think this means that because of missing values or non-positive weights, the PROC SURVEYREG procedure cannot operate. ^You need to check your dataset for these problems.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;No observations in data set OUTCOMES_JOINT_WKD_IND.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I also checked the data set, and it contains 20470 observations&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;What data set are you referring to that you checked and it contains 20470 observations? When SAS says the data set has no observations and the user says it has 20470, I believe SAS. So, please convince us that data set&amp;nbsp;nh.outcomes_joint_wkd_ind has that many observations, by running PROC CONTENTS and showing us the top 10 lines or so.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/317476"&gt;@knighsson&lt;/a&gt;, from now on we need to see the entire log for these steps ... the code, the NOTES, the WARNINGS, the errors, in other words everything in the log for these steps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 13:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663167#M22755</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-06-18T13:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: no observation in the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663177#M22757</link>
      <description>&lt;P&gt;Thank you for your respond, I would also trust SAS more than myself! I think something wrong with the eligible domain maybe. I attached the screen shots&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 828px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46349iD2814ACFD1FBE9EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.PNG" style="width: 648px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46348i103393553803AD89/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.PNG" alt="2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.PNG" style="width: 566px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46351i9325C9FD5D12126C/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.PNG" alt="3.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46350i2A8E23FC2AD18BD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.PNG" alt="4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 14:01:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663177#M22757</guid>
      <dc:creator>knighsson</dc:creator>
      <dc:date>2020-06-18T14:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: no observation in the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663179#M22758</link>
      <description>I also found that when LOG mentioned the dataset as "OUTCOME_JOINT_WKD_IND" rather than "NH.OUTCOME_JOINT_WKD_IND". Maybe this is the reason why it has 0 observations? but how can I fix it?</description>
      <pubDate>Thu, 18 Jun 2020 14:20:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663179#M22758</guid>
      <dc:creator>knighsson</dc:creator>
      <dc:date>2020-06-18T14:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: no observation in the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663180#M22759</link>
      <description>&lt;P&gt;That's very odd. Doesn't make sense to me. But you still need to fix this missing value problem and negative weight problem, and then perhaps the problem will go away.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 14:23:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663180#M22759</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-06-18T14:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: no observation in the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663187#M22760</link>
      <description>&lt;P&gt;One: Please post log entries as text. Copy the text from the log and paste into a code box opened on the forum with the &amp;lt;/&amp;gt; icon.&lt;/P&gt;
&lt;P&gt;That way we can copy bits of the code and make suggested changes or simply highlight text. I know that I am not going to retype, very likely introducing new problems, lots of someone else's code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Two: That short proc print output showing missing values for so many variables but not showing any of the variables actually used by your code does question the completeness of the data involved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 14:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663187#M22760</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-06-18T14:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: no observation in the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663654#M22794</link>
      <description>PROC SURVEYREG DATA=nh.outcomes_joint_wkd_ind nomcar;&lt;BR /&gt;387  STRATA sdmvstra;&lt;BR /&gt;388  CLUSTER sdmvpsu;&lt;BR /&gt;389  CLASS alpha50 age RIAGENDR PIR SDDSRVYR RIDRETH1;&lt;BR /&gt;390  WEIGHT glucwt4yr;&lt;BR /&gt;391  DOMAIN eligible;&lt;BR /&gt;392  model BMXBMI= age RIAGENDR PIR SDDSRVYR RIDRETH1 EIEER alpha50/adjrsq clparm solution vadjust=none;&lt;BR /&gt;393  lsmeans / lines adjust=tukey;&lt;BR /&gt;394  run;&lt;BR /&gt;&lt;BR /&gt;ERROR: No observations in data set OUTCOMES_JOINT_WKD_IND.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SURVEYREG used (Total process time):&lt;BR /&gt;      real time           0.47 seconds&lt;BR /&gt;      cpu time            0.00 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Sat, 20 Jun 2020 00:17:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663654#M22794</guid>
      <dc:creator>knighsson</dc:creator>
      <dc:date>2020-06-20T00:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: no observation in the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663659#M22795</link>
      <description>&lt;P&gt;In your code you use&amp;nbsp;&lt;CODE class=" language-sas"&gt;if alpha50=. then eligible=2;&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data nh.outcomes_joint_wkd_ind;
set nh.outcomes_joint_wkd_ind;
if alpha50=. then eligible=2;
else eligible=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So I guess that means alpha50 is always missing for eligible=2.&lt;/P&gt;
&lt;P&gt;And then your SurveyReg code uses alpha50 - which is always missing for eligible=2:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;CLASS &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;alpha50&lt;/FONT&gt;&lt;/STRONG&gt; age RIAGENDR PIR SDDSRVYR RIDRETH1;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;WEIGHT glucwt4yr;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;DOMAIN eligible;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;model BMXBMI= age RIAGENDR PIR SDDSRVYR RIDRETH1 EIEER &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;alpha50&lt;/STRONG&gt;&lt;/FONT&gt;/adjrsq clparm solution vadjust=none;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Isn't that then exactly what the SAS Log tells you?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;All observations were omitted &lt;STRONG&gt;due to missing values&lt;/STRONG&gt; or non-positive weights in domain &lt;STRONG&gt;eligible=2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jun 2020 00:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/663659#M22795</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-06-20T00:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: no observation in the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/664356#M22855</link>
      <description>Yes, we divided participant into two domains, one is that participant has alpha50, one is that dont have alpha 50. So domain eligible =2  has all missing alpha50. but my issue is that when I run multiple linear regression, SAS cannot recognize the data set i used and told me there is no observations. But there are observations in previous step.</description>
      <pubDate>Tue, 23 Jun 2020 15:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/664356#M22855</guid>
      <dc:creator>knighsson</dc:creator>
      <dc:date>2020-06-23T15:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: no observation in the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/664485#M22865</link>
      <description>Thank you all. So I found what went wrong. When I run the code of multiple linear regression, one of the variables, EIEER, has no values in all the participants. That's why it did not work. After the assigning values to EIEER, it worked out. Thank you all!</description>
      <pubDate>Tue, 23 Jun 2020 20:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/no-observation-in-the-dataset/m-p/664485#M22865</guid>
      <dc:creator>knighsson</dc:creator>
      <dc:date>2020-06-23T20:49:01Z</dc:date>
    </item>
  </channel>
</rss>

