<?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: PROC TRANSREG deletes my variable. How to save it ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSREG-deletes-my-variable-How-to-save-it/m-p/395149#M95242</link>
    <description>&lt;P&gt;Use the ID statement.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2017 15:35:49 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-09-12T15:35:49Z</dc:date>
    <item>
      <title>PROC TRANSREG deletes my variable. How to save it ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSREG-deletes-my-variable-How-to-save-it/m-p/395147#M95241</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my code is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example;
   input idn factor1 $ factor2 $ measurableDV;
   cards;
	2477 a1 b1 1.63
	2431 a1 b2 9.98
	2456 a1 b1 1.55
	2412 a1 b2 4.16
	2477 a2 b1 1.77
	2432 a2 b2 2.98
	2457 a2 b1 1.55
	2412 a2 b2 8.18
	2478 a3 b1 1.22
	2433 a3 b2 2.55
	2458 a3 b1 1.59
	2414 a3 b2 0.10
/* ... */
	;
	run;

proc print data = example; run;
ods select Position; proc contents order = VARNUM data = example; run; ods select default;


proc transreg data = example;
	model boxcox(measurableDV / LAMBDA = -3 to +3 BY 0.05 ALPHA = 0.001) = CLASS(factor1 factor2);
	output out = example_BoxCox;
	RUN;

proc print data = example_BoxCox; run;
ods select Position; proc contents order = VARNUM data = example_BoxCox; run; ods select default;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;PROC CONTENTS shows that there is IDN variable in example data set.&lt;/P&gt;
&lt;P&gt;But the variable is vanished in the example_BoxCox data set.&lt;/P&gt;
&lt;P&gt;How to save it ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 15:33:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSREG-deletes-my-variable-How-to-save-it/m-p/395147#M95241</guid>
      <dc:creator>stan</dc:creator>
      <dc:date>2017-09-12T15:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSREG deletes my variable. How to save it ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSREG-deletes-my-variable-How-to-save-it/m-p/395149#M95242</link>
      <description>&lt;P&gt;Use the ID statement.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 15:35:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSREG-deletes-my-variable-How-to-save-it/m-p/395149#M95242</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-12T15:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSREG deletes my variable. How to save it ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSREG-deletes-my-variable-How-to-save-it/m-p/395155#M95246</link>
      <description>&lt;P&gt;By default most of the regression procedures will only output variables used on the model statement and requested statistics/ parameters/ values. Many other procedures have similar behavior where only the "used" variables appear in result data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need other variables to appear the output that were not used then the ID as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;suggest&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 15:43:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSREG-deletes-my-variable-How-to-save-it/m-p/395155#M95246</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-12T15:43:52Z</dc:date>
    </item>
  </channel>
</rss>

