painful truncnorm

R-bloggers 2013-04-09

Summary:

As I wanted to simulate truncated normals in a hurry, I coded the inverse cdf approach: instead of using my own accept-reject algorithm. Poor shortcut as the method fails when a and b are too far from μ So I introduced a control (and ended up wasting more time than if I had used my [...]

Link:

http://feedproxy.google.com/~r/RBloggers/~3/Dm-dNAnPV3s/

From feeds:

Statistics and Visualization » R-bloggers

Tags:

Authors:

xi'an

Date tagged:

04/09/2013, 01:22

Date published:

04/08/2013, 18:13