<?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: SAS Viya: How to include 100 imputations into cox regression using proc phselect? in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/SAS-Viya-How-to-include-100-imputations-into-cox-regression/m-p/918710#M1773</link>
    <description>&lt;P&gt;Break dataset AIR into 10 chunks (_imputation 1-10, 11-20, 21-30, etc.) and feed them to a macro:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Define macro named
arbitrarily, e.g., "piggie" */
%macro piggie (chunk);
              %DO I = 1 %TO 10;
                         --- your code here ---
                         --- done on chunk&amp;amp;i ---
              %END;
%mend piggie;
/*Call macro piggie*/
%piggie(chunk1)
%piggie(chunk2)
...
%piggie(chunk10)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 03 Mar 2024 02:35:56 GMT</pubDate>
    <dc:creator>pink_poodle</dc:creator>
    <dc:date>2024-03-03T02:35:56Z</dc:date>
    <item>
      <title>SAS Viya: How to include 100 imputations into cox regression using proc phselect?</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/SAS-Viya-How-to-include-100-imputations-into-cox-regression/m-p/917566#M1748</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to perform a Cox proportional hazards model using Proc Phselect with LASSO for variable selection in SAS Viya for Learners. I am using a dataset consisting of 100 imputations and the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc phselect data=mycas.mydata;
   by _imputation_;
   class c_: o_: / param=ref ref=first;
   model Time*event(0) = C_: o_: n_:;
   selection method=lasso(choose=AIC stop=none) details=all;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I received the following error message:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ERROR: SAS Internal Error. Number of 'groups' (11) exceeded maximum (10) allowed in the AIR Bridge.&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error did not appear after making the following changes to include less than ten imputations:&lt;/P&gt;&lt;P&gt;proc phselect data=mydata &lt;STRONG&gt;(where=(_imputation_&amp;lt;=10))&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to include all 100 imputations and not only 10 at a time, is there a way to do this in Viya for Learners?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 13:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/SAS-Viya-How-to-include-100-imputations-into-cox-regression/m-p/917566#M1748</guid>
      <dc:creator>nj145</dc:creator>
      <dc:date>2024-02-23T13:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya: How to include 100 imputations into cox regression using proc phselect?</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/SAS-Viya-How-to-include-100-imputations-into-cox-regression/m-p/918710#M1773</link>
      <description>&lt;P&gt;Break dataset AIR into 10 chunks (_imputation 1-10, 11-20, 21-30, etc.) and feed them to a macro:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Define macro named
arbitrarily, e.g., "piggie" */
%macro piggie (chunk);
              %DO I = 1 %TO 10;
                         --- your code here ---
                         --- done on chunk&amp;amp;i ---
              %END;
%mend piggie;
/*Call macro piggie*/
%piggie(chunk1)
%piggie(chunk2)
...
%piggie(chunk10)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 03 Mar 2024 02:35:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/SAS-Viya-How-to-include-100-imputations-into-cox-regression/m-p/918710#M1773</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2024-03-03T02:35:56Z</dc:date>
    </item>
  </channel>
</rss>

