Hi all,
my stan file run correctly from the command line.
Sorry for disturbing again, but I do get an error while calling it
from matlabStan.
Error using rng (line 96)
The current random number generator is the legacy generator. This is
because you have executed a command such as rand('state',0), which
activates
MATLAB's legacy random number behavior. You may not use RNG to reseed
the legacy random number generator.
Use rng('default') to reinitialize the random number generator to its
startup configuration, or call RNG using a specific generator type,
such as
rng(seed,'twister').
Error in mcmc/set.rng_state (line 92)
rng(r);
Error in mcmc (line 37)
self.rng_state = seed;
Error in StanFit (line 82)
self.sim_ = mcmc(self.model.seed);
Error in StanModel/sampling (line 744)
fit = StanFit('model',copy(self),'processes',p,...
Error in stan (line 137)
fit = model.sampling(p.Unmatched);
To reproduce the bug, my matlab code is:
corr_sign_data = struct('N',10,...
'D',2,...
'r', 0.31622776601,...
'pos',[7 1]);
fit1 = stan('file','bernoulli_hier_corr.stan','data',corr_sign_data,'iter',1000,'chains',1);
while the stan file is below:
https://db.tt/WIkzeDmT
regards, Giorgio