stan-dev / docs

Documentation for the Stan language and CmdStan
https://mc-stan.org/docs/
Other
37 stars 107 forks source link

Incorrect equation in the truncated data section #766

Closed dpascall closed 4 months ago

dpascall commented 4 months ago

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.

bob-carpenter commented 4 months ago

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