<?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 proc surveyreg - speed in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyreg-speed/m-p/440913#M23226</link>
    <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask for your help concerning the following issue.&lt;/P&gt;&lt;P&gt;For the case at hand, I need to run regressions with fixed effects and clustered standard errors. Up to now, I am mainly interested in the estimated parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus, I ran something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc	surveyreg
	data				=			in;
	class 							classvar;
	cluster 						clustervar;
	model
		y				= 			x1	x2			 	
									classvar	
									/ solution;
	ods output
	ParameterEstimates 	= 			param;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use &lt;A href="https://blogs.sas.com/content/iml/2013/05/24/turn-off-ods-for-simulations.html" target="_self"&gt;this highly esteemed&lt;/A&gt; tool "to turn ODS off".&lt;/P&gt;&lt;P&gt;Though, I do not seem to find a "noprint" option for "proc surveyreg" with an corresponding "outX=" for the parameter estimates.&lt;/P&gt;&lt;P&gt;I would be glad, if you could help with if there are any means by which I can possible increase the speed by which the regression, i.e., a regression with fixed effects and clustered standard errors, is performed?&lt;/P&gt;&lt;P&gt;Are there other procedures or may I modify the statement above, sticking to "proc surveyreg"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yours sincerely,&lt;/P&gt;&lt;P&gt;Sinistrum&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2018 16:36:55 GMT</pubDate>
    <dc:creator>Sinistrum</dc:creator>
    <dc:date>2018-02-28T16:36:55Z</dc:date>
    <item>
      <title>proc surveyreg - speed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyreg-speed/m-p/440913#M23226</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask for your help concerning the following issue.&lt;/P&gt;&lt;P&gt;For the case at hand, I need to run regressions with fixed effects and clustered standard errors. Up to now, I am mainly interested in the estimated parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus, I ran something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc	surveyreg
	data				=			in;
	class 							classvar;
	cluster 						clustervar;
	model
		y				= 			x1	x2			 	
									classvar	
									/ solution;
	ods output
	ParameterEstimates 	= 			param;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use &lt;A href="https://blogs.sas.com/content/iml/2013/05/24/turn-off-ods-for-simulations.html" target="_self"&gt;this highly esteemed&lt;/A&gt; tool "to turn ODS off".&lt;/P&gt;&lt;P&gt;Though, I do not seem to find a "noprint" option for "proc surveyreg" with an corresponding "outX=" for the parameter estimates.&lt;/P&gt;&lt;P&gt;I would be glad, if you could help with if there are any means by which I can possible increase the speed by which the regression, i.e., a regression with fixed effects and clustered standard errors, is performed?&lt;/P&gt;&lt;P&gt;Are there other procedures or may I modify the statement above, sticking to "proc surveyreg"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yours sincerely,&lt;/P&gt;&lt;P&gt;Sinistrum&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 16:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyreg-speed/m-p/440913#M23226</guid>
      <dc:creator>Sinistrum</dc:creator>
      <dc:date>2018-02-28T16:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: proc surveyreg - speed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyreg-speed/m-p/441311#M23246</link>
      <description>&lt;P&gt;How many levels are in the CLASSVAR variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for alternatives, you might want to &lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/Is-it-possible-to-absorb-fixed-effects-when-using-Proc-Surveyreg/m-p/436537#M23067" target="_self"&gt;read this related thread.&lt;/A&gt;&amp;nbsp;The situation is slightly different than your, but some of the ideas&amp;nbsp;might be relevant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 18:11:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyreg-speed/m-p/441311#M23246</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-03-01T18:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc surveyreg - speed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyreg-speed/m-p/441319#M23247</link>
      <description>&lt;P&gt;Some of your "speed" issue might be related to tables that you aren't interested in when generating the output. It seems that a number of these procedures build everything in memory and then send them to the results window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might get an improvement by using either ODS SELECT or ODS EXCLUDE to restrict how much output&amp;nbsp;is sent to the results.&lt;/P&gt;
&lt;P&gt;These would be similar to the "noprint" of older procedures. ODS Select would set which tables to keep in your output or ODS Exclude would suppress a list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't know the names of tables to select/exclude you could either run the procedure with a reduced data set and the ODS Trace option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods trace on;&lt;/P&gt;
&lt;P&gt;proc surveyreg data=yourdata (where = (classvar=1));&lt;/P&gt;
&lt;P&gt;&amp;lt;other statements&amp;gt;&lt;/P&gt;
&lt;P&gt;ods trace off;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which will generate a log entry with the tables used.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 18:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyreg-speed/m-p/441319#M23247</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-01T18:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc surveyreg - speed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyreg-speed/m-p/441474#M23250</link>
      <description>&lt;P&gt;First, thank you for your answers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Rick_SAS wrote:&lt;/P&gt;&lt;P&gt;How many levels are in the CLASSVAR variable?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Around 1200. I run panel regressions.&lt;/P&gt;&lt;P&gt;Thank you for the link to the other thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;ballardw wrote:&lt;/P&gt;&lt;P&gt;You might get an improvement by using either ODS SELECT or ODS EXCLUDE to restrict how much output&amp;nbsp;is sent to the results.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I modified the code to&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc	surveyreg
	data				=			in;
	class 							classvar;
	cluster 						clustervar;
	model
		y				= 			x1	x2			 	
									classvar	
									/ solution;
	ods	select
	ParameterEstimates;
	ods output
	ParameterEstimates 	= 			param;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If by means of this I implemented your suggestion correctly, I were not capable of reducing the speed it took to perform the calculations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume the problem seems to be (which goes into the direction of the issue discussed in the thread Rick_SAS linked to; confer the last post there) that proc surveyreg performs a "L&lt;SPAN class="st"&gt;east Square Dummy Variable" approach and thus calculates a coefficient for every individual of the classvar. This would suggest it is not a problem of creating redundant output though indeed a matter of parameter estimation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 07:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyreg-speed/m-p/441474#M23250</guid>
      <dc:creator>Sinistrum</dc:creator>
      <dc:date>2018-03-02T07:20:24Z</dc:date>
    </item>
  </channel>
</rss>

