<?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 Choosing all numeric variables exeptc one to a model. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Choosing-all-numeric-variables-exeptc-one-to-a-model/m-p/616579#M180512</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;my phrege procedure seams to not work corectly&amp;nbsp; since I want to include in a model all nunmeric variables from the data set while the censoring variable is also numeric.&lt;/P&gt;&lt;P&gt;I got the warning:&lt;/P&gt;&lt;P&gt;The censoring variable rc is also an explanatory variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;proc phreg data=model_cox alpha=0.05 namelen=32;&lt;BR /&gt;class &amp;amp;zm_class. / order=freq ref=first;&lt;BR /&gt;model ttd * rc(0,1) = _NUMERIC_ / ties = breslow rl=wald selection=stepwise /*slentry=0.25&lt;BR /&gt;slstay=0.15*/;&lt;BR /&gt;ods graphics off;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a easy way to pick all numeric variables exept for rc?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2020 19:12:14 GMT</pubDate>
    <dc:creator>dawidkaz</dc:creator>
    <dc:date>2020-01-10T19:12:14Z</dc:date>
    <item>
      <title>Choosing all numeric variables exeptc one to a model.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Choosing-all-numeric-variables-exeptc-one-to-a-model/m-p/616579#M180512</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;my phrege procedure seams to not work corectly&amp;nbsp; since I want to include in a model all nunmeric variables from the data set while the censoring variable is also numeric.&lt;/P&gt;&lt;P&gt;I got the warning:&lt;/P&gt;&lt;P&gt;The censoring variable rc is also an explanatory variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;proc phreg data=model_cox alpha=0.05 namelen=32;&lt;BR /&gt;class &amp;amp;zm_class. / order=freq ref=first;&lt;BR /&gt;model ttd * rc(0,1) = _NUMERIC_ / ties = breslow rl=wald selection=stepwise /*slentry=0.25&lt;BR /&gt;slstay=0.15*/;&lt;BR /&gt;ods graphics off;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a easy way to pick all numeric variables exept for rc?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 19:12:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Choosing-all-numeric-variables-exeptc-one-to-a-model/m-p/616579#M180512</guid>
      <dc:creator>dawidkaz</dc:creator>
      <dc:date>2020-01-10T19:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing all numeric variables exeptc one to a model.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Choosing-all-numeric-variables-exeptc-one-to-a-model/m-p/616582#M180514</link>
      <description>&lt;P&gt;Might just be easiest to put the list into a macro variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=model_cox  noprint out=contents; run;
proc sql noprint;
select name into :names separated by ' '
  from contents
  where type=1 and upcase(name) ne 'RC' 
;
quit;

proc phreg data=model_cox alpha=0.05 namelen=32;
  class &amp;amp;zm_class. / order=freq ref=first;
  model ttd * rc(0,1) = &amp;amp;names 
      / ties = breslow rl=wald selection=stepwise 
          /* slentry=0.25 slstay=0.15 */
;
run;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jan 2020 19:21:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Choosing-all-numeric-variables-exeptc-one-to-a-model/m-p/616582#M180514</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-01-10T19:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing all numeric variables exeptc one to a model.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Choosing-all-numeric-variables-exeptc-one-to-a-model/m-p/616595#M180518</link>
      <description>&lt;P&gt;Here is a reference that illustrates how to refer to variables and datasets in a short cut list:&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2018/05/29/6-easy-ways-to-specify-a-list-of-variables-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/05/29/6-easy-ways-to-specify-a-list-of-variables-in-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on where in the data set the variable is located, this may be an option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;firstVar-numeric-lastVar;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/306497"&gt;@dawidkaz&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;my phrege procedure seams to not work corectly&amp;nbsp; since I want to include in a model all nunmeric variables from the data set while the censoring variable is also numeric.&lt;/P&gt;
&lt;P&gt;I got the warning:&lt;/P&gt;
&lt;P&gt;The censoring variable rc is also an explanatory variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods graphics on;&lt;BR /&gt;proc phreg data=model_cox alpha=0.05 namelen=32;&lt;BR /&gt;class &amp;amp;zm_class. / order=freq ref=first;&lt;BR /&gt;model ttd * rc(0,1) = _NUMERIC_ / ties = breslow rl=wald selection=stepwise /*slentry=0.25&lt;BR /&gt;slstay=0.15*/;&lt;BR /&gt;ods graphics off;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a easy way to pick all numeric variables exept for rc?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 20:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Choosing-all-numeric-variables-exeptc-one-to-a-model/m-p/616595#M180518</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-10T20:32:00Z</dc:date>
    </item>
  </channel>
</rss>

