Re: [R] Normal Distribution Quantiles

2011-01-09 Thread Rainer Schuermann
Altogether I got five more or less silly solutions (not my judgment!), some of them further discussed in private mail, for a problem where my expectation was to get a simple one-liner back: "Check ?clt" or so... Fortunately, with all of them I seem to arrive at a result that is consistent with

Re: [R] Normal Distribution Quantiles

2011-01-09 Thread Michael Bedward
Just to add to the silly solutions, here's how I would have done it... mu <- 40 sdev <- 10 days <- 100:120 # range to explore p <- 0.8 days[ match(TRUE, qnorm(0.2, mu*days, sqrt(sdev * sdev * days)) >= 4000) ] Michael On 9 January 2011 08:48, Bert Gunter wrote: > If I understand what you have

Re: [R] Normal Distribution Quantiles

2011-01-08 Thread Bert Gunter
If I understand what you have said below, it looks like you do NOT have the problem solved manually. You CAN use qnorm , and when you do so, your equation yields a simple quadratic which, of course, has an exact solution that you can calculate in R. Of course, one can use uniroot or whatever to so

Re: [R] Normal Distribution Quantiles

2011-01-08 Thread Joshua Wiley
On Sat, Jan 8, 2011 at 6:25 AM, Rainer Schuermann wrote: > It is _from_ a homework but I have the solution already (explicitly got that > done first!) - this was the pasted Latex code (apologies for that, but in > plain text it looks unreadable[1], and I thought everybody here has his / her > f

Re: [R] Normal Distribution Quantiles

2011-01-08 Thread Charles C. Berry
On Sat, 8 Jan 2011, Rainer Schuermann wrote: Sounds like homework, which is not an encouraged use of the Rhelp list. You can either do it in theory... It is _from_ a homework but I have the solution already (explicitly got that done first!) - this was the pasted Latex code (apologies for th

Re: [R] Normal Distribution Quantiles

2011-01-08 Thread David Winsemius
On Jan 8, 2011, at 9:25 AM, Rainer Schuermann wrote: Sounds like homework, which is not an encouraged use of the Rhelp list. You can either do it in theory... It is _from_ a homework but I have the solution already (explicitly got that done first!) - this was the pasted Latex code (apologie

Re: [R] Normal Distribution Quantiles

2011-01-08 Thread Rainer Schuermann
> Sounds like homework, which is not an encouraged use of the Rhelp > list. You can either do it in theory... It is _from_ a homework but I have the solution already (explicitly got that done first!) - this was the pasted Latex code (apologies for that, but in plain text it looks unreadable[1]

Re: [R] Normal Distribution Quantiles

2011-01-08 Thread David Winsemius
On Jan 8, 2011, at 6:56 AM, Rainer Schuermann wrote: This is probably embarrassingly basic, but I have spent quite a few hours in Google and RSeek without getting a clue - probably I'm asking the wrong questions... There is this guy who has decided to walk through Australia, a total dist

[R] Normal Distribution Quantiles

2011-01-08 Thread Rainer Schuermann
This is probably embarrassingly basic, but I have spent quite a few hours in Google and RSeek without getting a clue - probably I'm asking the wrong questions... There is this guy who has decided to walk through Australia, a total distance of 4000 km. His daily portion (mean) is 40km with an sd