I'm curious what might be your favorite strategies for handling machine precision issues like those illustrated by the following example. The ultimate goal would be to work with quantities like r but, once computed, "manage" them so they equal .025. Thanks for sharing any suggestions, hints, or tricks that work for you.
Code:
mata p=.95 q=.025 r=.5*(1-p) q==r 40*q==1 40*r==1 end
Code:
: p=.95 : q=.025 : r=.5*(1-p) : : q==r 0 : 40*q==1 1 : 40*r==1 0
Comment