<?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: Why does PROC MCMC stall on SAS Studio 3.7 here? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Why-does-PROC-MCMC-stall-on-SAS-Studio-3-7-here/m-p/526996#M6840</link>
    <description>&lt;P&gt;PROC MCMC runs in general, including on this same&amp;nbsp;dataset if I&amp;nbsp;use fewer parameters.&amp;nbsp; Since making this post, I was able to get this&amp;nbsp;code to run by simply changing the algorithm to the default rather than NUTS (i.e. by deleting "alg=nuts" from the PROC MCMC line).&amp;nbsp; So whatever the issue is, it seems to be&amp;nbsp;something about the way NUTS does its initial optimization/tuning.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jan 2019 17:16:08 GMT</pubDate>
    <dc:creator>brandonmadsen</dc:creator>
    <dc:date>2019-01-14T17:16:08Z</dc:date>
    <item>
      <title>Why does PROC MCMC stall on SAS Studio 3.7 here?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Why-does-PROC-MCMC-stall-on-SAS-Studio-3-7-here/m-p/526523#M6820</link>
      <description>&lt;P&gt;Could anyone help me diagnose why this code fails (system becomes unresponsive, need to close browser window and start a new session) as soon as PROC MCMC starts running, before it even has a chance to put out a single line to the log?&amp;nbsp; Everything before PROC MCMC runs fine on its own. By the time PROC MCMC runs, all the data I'm using&amp;nbsp;has been converted to numeric, and all the non-categorical variables have been standardized.&amp;nbsp; There is no missing data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp;using SAS Studio Release 3.7 (Enterprise Edition) on Google Chrome&amp;nbsp;&lt;SPAN&gt;Version 71.0.3578.98 (Official Build) (64-bit)&lt;/SPAN&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT @9:17 1/14/2019: PROC MCMC runs in general, including on this same&amp;nbsp;dataset if I&amp;nbsp;use fewer parameters.&amp;nbsp; Since making this post, I was able to get this&amp;nbsp;code to run by simply changing the algorithm to the default rather than NUTS (i.e. by deleting "alg=nuts" from the PROC MCMC line).&amp;nbsp; So whatever the issue is, it seems to be&amp;nbsp;something about the way NUTS does its initial optimization/tuning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME REFFILE '/home/brandonmadsen1/toneGlideFFR_forR.csv';

PROC IMPORT DATAFILE=REFFILE DBMS=CSV OUT=tg_orig;
	GETNAMES=YES;
RUN;

data tone_glide;
	set tg_orig;
	* logit transform to allow use of normal distribution (0-1 scale --&amp;gt; -inf to +inf scale);
	rho_logit=log(rho/(1-rho));
run;

proc standard data=tone_glide mean=0 std=1 out=STD_TONE_GLIDE;
	Var freq rho_logit hzPerSec snrDb lagMs tMs rho;
Run;

proc transreg data=std_tone_glide design;
	model identity(freq|hzPerSec|tMs / tstandard=z)|class(mont|direction|group);
	id sid slopeCode rho_logit rho snrDb octsPerEpoch lagMs;
	
	output out=std_tone_glide;
run;
%put &amp;amp;_trgind;

* macro for putting linear model into proc mcmc;
%macro linpred;                               
                %do i=1 %to 96;
                                beta&amp;amp;i.*data[&amp;amp;i.] +
                %end;
%mend linpred;

%put %linpred 0;

options nocenter;
ods graphics on;

proc mcmc data=std_tone_glide nmc=3000 nbi=1000 alg=nuts(maxheight=12) propcov=quanew
		statistics(percent=5.5 94.5)=(summary) outpost=op;
	array data 1 &amp;amp;_trgind;
	array beta[96] beta1-beta96;
	mu = 0 + %linpred 0;  *zero at end because of trailing "+";
	parms beta: sigma;
	prior beta: ~ normal(0, sd=1);
	prior sigma ~ expon(scale=1);
	model rho_logit ~ normal(mu , sd=sigma);
run;

ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 17:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Why-does-PROC-MCMC-stall-on-SAS-Studio-3-7-here/m-p/526523#M6820</guid>
      <dc:creator>brandonmadsen</dc:creator>
      <dc:date>2019-01-14T17:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why does PROC MCMC stall on SAS Studio 3.7 here?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Why-does-PROC-MCMC-stall-on-SAS-Studio-3-7-here/m-p/526554#M6821</link>
      <description>Does MCMC run at all? Did you try any of the samples in the documentation? &lt;BR /&gt;&lt;BR /&gt;Usually that happens because there's an error in the PROC and SAS Studio isn't quite at the level of failing gracefully all the time yet. Or it's a bug. But checking if it works at all is the easiest solution. &lt;BR /&gt;&lt;BR /&gt;You can also contact SAS tech support since you're running an Enterprise solution and they can help you debug.</description>
      <pubDate>Sat, 12 Jan 2019 01:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Why-does-PROC-MCMC-stall-on-SAS-Studio-3-7-here/m-p/526554#M6821</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-12T01:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why does PROC MCMC stall on SAS Studio 3.7 here?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Why-does-PROC-MCMC-stall-on-SAS-Studio-3-7-here/m-p/526996#M6840</link>
      <description>&lt;P&gt;PROC MCMC runs in general, including on this same&amp;nbsp;dataset if I&amp;nbsp;use fewer parameters.&amp;nbsp; Since making this post, I was able to get this&amp;nbsp;code to run by simply changing the algorithm to the default rather than NUTS (i.e. by deleting "alg=nuts" from the PROC MCMC line).&amp;nbsp; So whatever the issue is, it seems to be&amp;nbsp;something about the way NUTS does its initial optimization/tuning.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 17:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Why-does-PROC-MCMC-stall-on-SAS-Studio-3-7-here/m-p/526996#M6840</guid>
      <dc:creator>brandonmadsen</dc:creator>
      <dc:date>2019-01-14T17:16:08Z</dc:date>
    </item>
  </channel>
</rss>

