MatlabStan icon indicating copy to clipboard operation
MatlabStan copied to clipboard

Remove dependence on Statistics or Finance toolbox

Open peclayson opened this issue 7 years ago • 1 comments

Hi,

I noticed that in StanFit.m, the nansum function is used on lines 272 and 366. nansum is a function in the Statistics toolbox and in the finance toolbox.

nansum can be replaced with sum(x,'omitnan'), which would circumvent the user needing the two abovementioned toolboxes and serves the same purpose as nansum. I can't find any other functions that require the toolboxes in the MatlabStan scripts.

I know most people probably have one of these toolboxes, but it might make life easier on a few.

Hope it helps :) Peter

peclayson avatar Oct 11 '18 13:10 peclayson

This issue has also been raised in issue #48 .

JoKeyser avatar Dec 15 '23 14:12 JoKeyser