Closed dpascall closed 4 months ago
In the third equation line on this page (https://mc-stan.org/docs/stan-users-guide/truncation-censoring.html), the log is raised to the power M rather than the number being logged.
Should be log((1-phi((U-mu)/sigma))^M) rather than log(1-phi((U-mu)/sigma))^M.
Thanks. If you click on the edit button, you can just edit it in the browser and create a pull request to fix. That's how I did this: https://github.com/stan-dev/docs/pull/767
Summary:
In the third equation line on this page (https://mc-stan.org/docs/stan-users-guide/truncation-censoring.html), the log is raised to the power M rather than the number being logged.
Should be log((1-phi((U-mu)/sigma))^M) rather than log(1-phi((U-mu)/sigma))^M.