Skip to content
Prev 246841 / 398506 Next

Normal Distribution Quantiles

On Sat, 8 Jan 2011, Rainer Schuermann wrote:

            
Your question was 'how do I find the smallest integer $n$ such that...', 
right?

Using uniroot and pnorm, you could solve for real $n$ and then round up.

Doing this, I find that in greater than 95% of trials, your bushwalker 
would be done in 105 days or less.

Or you could use findInterval, sapply, and pnorm to get all of the $n$s in 
one expression.

HTH,

Chuck
Charles C. Berry                            Dept of Family/Preventive Medicine
cberry at tajo.ucsd.edu			    UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901