surgibbs: fix bug in param values output

time-shift
Houtan Bastani 2019-02-26 15:17:48 +01:00
parent 0cd18c3841
commit d6c5618a74
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
2 changed files with 2 additions and 3 deletions

View File

@ -134,7 +134,6 @@ if ~options_.nograph
ncols = ncols + 1;
end
for j = 1:length(param_names)
M_.params(strmatch(param_names{j}, M_.param_names, 'exact')) = oo_.surgibbs.beta(j);
subplot(nrows, ncols, j)
histogram(oo_.surgibbs.betadraws(:, j))
hc = histcounts(oo_.surgibbs.betadraws(:, j));

View File

@ -32,9 +32,9 @@ estparamsval = [bq1 bq0];
A = 0.0005.*eye(length(estparams));
surgibbs(dseries('fishdata.csv'), estparams, estparamsval, A, 20000, 5000, 7);
good = [6.791587808530124
good = [-0.478275288902356
8.552700000000000
-0.478275288902356
6.791587808530124
-0.530200000000000
-0.397400000000000];