<?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 Putting parameter estimates back in the data set when using surveyreg in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576263#M163089</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyreg data=basu2 ;
class DR;
by sic;
model NI = R DR DR_R / clb solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can obtain parameter estimates for each group by sic as seen in the above code.&lt;/P&gt;&lt;P&gt;The reason why I got them is to use these parameters in another regression's independent variables. To do so, I need to put them in my data set again and merge this set to another data file and do the final regression I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well.. I found how to put parmest into dataset when using PRCO REG but PROC SURVEYREG... that does not work.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output ParameterEstimates = parms;
   proc reg data=sashelp.baseball;
      model logsalary = nHits nBB YrMajor / clb;
      quit;
   proc print data=parms noobs;
      run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have tried sth similar like the above. but even code color does not turn up to blue or navy, meaning it is not a valid code... I need to use surveryreg instead of just reg as I have a dummy variable and the data is a panel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thank you again your help very much again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2019 17:08:44 GMT</pubDate>
    <dc:creator>JKCho</dc:creator>
    <dc:date>2019-07-24T17:08:44Z</dc:date>
    <item>
      <title>Putting parameter estimates back in the data set when using surveyreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576263#M163089</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyreg data=basu2 ;
class DR;
by sic;
model NI = R DR DR_R / clb solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can obtain parameter estimates for each group by sic as seen in the above code.&lt;/P&gt;&lt;P&gt;The reason why I got them is to use these parameters in another regression's independent variables. To do so, I need to put them in my data set again and merge this set to another data file and do the final regression I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well.. I found how to put parmest into dataset when using PRCO REG but PROC SURVEYREG... that does not work.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output ParameterEstimates = parms;
   proc reg data=sashelp.baseball;
      model logsalary = nHits nBB YrMajor / clb;
      quit;
   proc print data=parms noobs;
      run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have tried sth similar like the above. but even code color does not turn up to blue or navy, meaning it is not a valid code... I need to use surveryreg instead of just reg as I have a dummy variable and the data is a panel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thank you again your help very much again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576263#M163089</guid>
      <dc:creator>JKCho</dc:creator>
      <dc:date>2019-07-24T17:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Putting parameter estimates back in the data set when using surveyreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576268#M163091</link>
      <description>&lt;P&gt;ODS TRACE ON; will show you in the log what output objects with what names a procedure creates.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576268#M163091</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-07-24T17:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Putting parameter estimates back in the data set when using surveyreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576269#M163092</link>
      <description>&lt;P&gt;Here's some instructions and explanations on how to capture output that is shown. &lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2017/03/31/capturing-output-from-any-procedure-with-an-ods-output-statement/" target="_blank"&gt;https://blogs.sas.com/content/sastraining/2017/03/31/capturing-output-from-any-procedure-with-an-ods-output-statement/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270067"&gt;@JKCho&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyreg data=basu2 ;
class DR;
by sic;
model NI = R DR DR_R / clb solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hi all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can obtain parameter estimates for each group by sic as seen in the above code.&lt;/P&gt;
&lt;P&gt;The reason why I got them is to use these parameters in another regression's independent variables. To do so, I need to put them in my data set again and merge this set to another data file and do the final regression I want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well.. I found how to put parmest into dataset when using PRCO REG but PROC SURVEYREG... that does not work.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output ParameterEstimates = parms;
   proc reg data=sashelp.baseball;
      model logsalary = nHits nBB YrMajor / clb;
      quit;
   proc print data=parms noobs;
      run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have tried sth similar like the above. but even code color does not turn up to blue or navy, meaning it is not a valid code... I need to use surveryreg instead of just reg as I have a dummy variable and the data is a panel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thank you again your help very much again!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:14:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576269#M163092</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-24T17:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Putting parameter estimates back in the data set when using surveyreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576273#M163093</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270067"&gt;@JKCho&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyreg data=basu2 ;
class DR;
by sic;
model NI = R DR DR_R / clb solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hi all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can obtain parameter estimates for each group by sic as seen in the above code.&lt;/P&gt;
&lt;P&gt;The reason why I got them is to use these parameters in another regression's independent variables. To do so, I need to put them in my data set again and merge this set to another data file and do the final regression I want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well.. I found how to put parmest into dataset when using PRCO REG but PROC SURVEYREG... that does not work.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output ParameterEstimates = parms;
   proc reg data=sashelp.baseball;
      model logsalary = nHits nBB YrMajor / clb;
      quit;
   proc print data=parms noobs;
      run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have tried sth similar like the above. but even code color does not turn up to blue or navy, meaning it is not a valid code... I need to use surveryreg instead of just reg as I have a dummy variable and the data is a panel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thank you again your help very much again!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do NOT trust the editor code highlighting to tell you whether code is valid or not.&lt;/P&gt;
&lt;P&gt;Did you actually &lt;STRONG&gt;run&lt;/STRONG&gt; something like:&lt;/P&gt;
&lt;PRE&gt;ods output ParameterEstimates = surveyparms;
proc surveyreg data=basu2 ;
   class DR;
   by sic;
   model NI = R DR DR_R / clb solution;
run;&lt;/PRE&gt;
&lt;P&gt;If that does not create an output data set then show us the log.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576273#M163093</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-24T17:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Putting parameter estimates back in the data set when using surveyreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576291#M163095</link>
      <description>I have tried similar codes you suggested and tried some codes again.&lt;BR /&gt;&lt;BR /&gt;ods output ParameterEstimates = surveyparms;&lt;BR /&gt;proc surveyreg data=basu2 ;&lt;BR /&gt;class DR;&lt;BR /&gt;by sic;&lt;BR /&gt;model NI = R DR DR_R / solution;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;This is the code works with NO clb.&lt;BR /&gt;That might be the reason and, as usual, sas code does not work by a small difference.</description>
      <pubDate>Wed, 24 Jul 2019 17:48:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576291#M163095</guid>
      <dc:creator>JKCho</dc:creator>
      <dc:date>2019-07-24T17:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Putting parameter estimates back in the data set when using surveyreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576297#M163096</link>
      <description>CLB isn't listed as a valid option in the documentation. &lt;BR /&gt;&lt;BR /&gt;It is an option for the REG procedure though. If the log didn't throw an error it should have....</description>
      <pubDate>Wed, 24 Jul 2019 17:52:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576297#M163096</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-24T17:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Putting parameter estimates back in the data set when using surveyreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576301#M163097</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270067"&gt;@JKCho&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I have tried similar codes you suggested and tried some codes again.&lt;BR /&gt;&lt;BR /&gt;ods output ParameterEstimates = surveyparms;&lt;BR /&gt;proc surveyreg data=basu2 ;&lt;BR /&gt;class DR;&lt;BR /&gt;by sic;&lt;BR /&gt;model NI = R DR DR_R / solution;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;This is the code works with NO clb.&lt;BR /&gt;That might be the reason and, as usual, sas code does not work by a small difference.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Just because an option, such as CLB is valid for one procedure, such as REG, does not mean that it is valid in another procedure.&lt;/P&gt;
&lt;P&gt;I would expect that the LOG showed an error that CLB was not a valid option for the Surveyreg Model statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which is why we say "&lt;STRONG&gt;Read the LOG&lt;/STRONG&gt;" and POST the log as well as "Read the documentation".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using options without knowing what they do or if they are valid&amp;nbsp;is a poor way to program in any language, not just SAS.&lt;/P&gt;
&lt;P&gt;A CAT command in Unix means something quite different than a CAT command on an HP3000 or the CAT function in a SAS data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576301#M163097</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-24T17:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Putting parameter estimates back in the data set when using surveyreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576303#M163098</link>
      <description>CLB does generate an error in the log when I run SURVEYREG with it.</description>
      <pubDate>Wed, 24 Jul 2019 17:56:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Putting-parameter-estimates-back-in-the-data-set-when-using/m-p/576303#M163098</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-24T17:56:27Z</dc:date>
    </item>
  </channel>
</rss>

