<?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 problem in panel data analysis: Not enough observations with non-missing model variables for model statement  in cross section in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/problem-in-panel-data-analysis-Not-enough-observations-with-non/m-p/158547#M41427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I did panel data analysis like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=al_us_l_r_l_res_sdm_bpres_sa_f;&lt;/P&gt;&lt;P&gt;by ds_code yrmth;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc panel data=al_us_l_r_l_res_sdm_bpres_sa_f;&lt;/P&gt;&lt;P&gt;id ds_code yrmth;&lt;/P&gt;&lt;P&gt;model wr = wrds_1 wwcor_kz_1 wwcor_kz_1wrds_1 rolling_stdm wwroa_1_d wlnmv_1 lnbm_1 wmomentum /FIXONE;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is error message like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Not enough observations with non-missing model variables for model statement&amp;nbsp; in cross section DS_Code=130286.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I checked the dataset, there was no non-missing values for &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DS_Code=130286 (see the attached file). Is this the reason that caused the error? Do I need to exclude the observations for &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DS_Code=130286 to proceed the panel data analysis? If yes, since there are some many identities (DS_Code) in my original dataset, is there any easy way to exclude the observations for these identities (e.g., if there is no non-missing valuse for any variable of an identity, then exclude these identities in the panel analysis)? Will excluding these identities resolve my problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Dec 2014 02:14:51 GMT</pubDate>
    <dc:creator>comeon2012</dc:creator>
    <dc:date>2014-12-21T02:14:51Z</dc:date>
    <item>
      <title>problem in panel data analysis: Not enough observations with non-missing model variables for model statement  in cross section</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-in-panel-data-analysis-Not-enough-observations-with-non/m-p/158547#M41427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I did panel data analysis like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=al_us_l_r_l_res_sdm_bpres_sa_f;&lt;/P&gt;&lt;P&gt;by ds_code yrmth;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc panel data=al_us_l_r_l_res_sdm_bpres_sa_f;&lt;/P&gt;&lt;P&gt;id ds_code yrmth;&lt;/P&gt;&lt;P&gt;model wr = wrds_1 wwcor_kz_1 wwcor_kz_1wrds_1 rolling_stdm wwroa_1_d wlnmv_1 lnbm_1 wmomentum /FIXONE;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is error message like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Not enough observations with non-missing model variables for model statement&amp;nbsp; in cross section DS_Code=130286.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I checked the dataset, there was no non-missing values for &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DS_Code=130286 (see the attached file). Is this the reason that caused the error? Do I need to exclude the observations for &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DS_Code=130286 to proceed the panel data analysis? If yes, since there are some many identities (DS_Code) in my original dataset, is there any easy way to exclude the observations for these identities (e.g., if there is no non-missing valuse for any variable of an identity, then exclude these identities in the panel analysis)? Will excluding these identities resolve my problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Dec 2014 02:14:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-in-panel-data-analysis-Not-enough-observations-with-non/m-p/158547#M41427</guid>
      <dc:creator>comeon2012</dc:creator>
      <dc:date>2014-12-21T02:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem in panel data analysis: Not enough observations with non-missing model variables for model statement  in cross section</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-in-panel-data-analysis-Not-enough-observations-with-non/m-p/158548#M41428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first 177 records have nothing but missing values for the right-hand side variables.&amp;nbsp; While that may not be the whole of the problem, it is a good place to start.&amp;nbsp; Also rolling_stdm is missing for every observation.&amp;nbsp; The latter is probably the main source of your problem.&amp;nbsp; Restate your model, excluding this variable and see what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 18:14:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-in-panel-data-analysis-Not-enough-observations-with-non/m-p/158548#M41428</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-12-22T18:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: problem in panel data analysis: Not enough observations with non-missing model variables for model statement  in cross section</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-in-panel-data-analysis-Not-enough-observations-with-non/m-p/158549#M41429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks SteveDenham. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;rolling_stdm is not the only variable that has missing values for every observation. Some other variables also might only have missing values for a certain identity (cross section). So I just delete all the observations that has missing value even only for a variable. By doing this, my problem seems to be resolved.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 13:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-in-panel-data-analysis-Not-enough-observations-with-non/m-p/158549#M41429</guid>
      <dc:creator>comeon2012</dc:creator>
      <dc:date>2014-12-23T13:55:52Z</dc:date>
    </item>
  </channel>
</rss>

