Re: [R] function for the average or expected range?; CORECTION

2008-03-24 Thread Greg Snow
Subject: Re: [R] function for the average or expected range?; CORECTION Hi, Greg: 1. I did the integration in Excel for four reasons: First, it's easier (even for me) to see what's happening and debug for something that simple. Second, my audience were people who were probably

Re: [R] function for the average or expected range?; CORECTION

2008-03-22 Thread Greg Snow
PM To: Greg Snow Cc: r-help@r-project.org Subject: Re: [R] function for the average or expected range?; CORECTION Hi, Greg: Thanks very much for the reply. 1. The 'ptukey' and 'qtukey' function are the distribution of the studentized range, not the range. I tried sum(ptukey(x, 2

Re: [R] function for the average or expected range?; CORECTION

2008-03-22 Thread Spencer Graves
. *From:* Spencer Graves [mailto:[EMAIL PROTECTED] *Sent:* Fri 3/21/2008 3:39 PM *To:* Greg Snow *Cc:* r-help@r-project.org *Subject:* Re: [R] function for the average or expected range?; CORECTION Hi, Greg: Thanks very much for the reply. 1. The 'ptukey' and 'qtukey

[R] function for the average or expected range?; CORECTION

2008-03-21 Thread Spencer Graves
Hi, All: ** My previous email on this subject seemed to contain an error; check the correction: Is there a function in R to compute the expected range of a sample of size n from some distribution? I ask, because I was recently asked about the control chart constant 'd2', which is the

[R] function for the average or expected range?; CORECTION TO CORRECTION

2008-03-21 Thread Spencer Graves
Hi, All: ** My previous email on this subject seemed to contain an error; check the correction below; please excuse my errors. Is there a function in R to compute the expected range of a sample of size n from some distribution? I ask, because I was recently asked about the control chart

Re: [R] function for the average or expected range?; CORECTION

2008-03-21 Thread Greg Snow
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Spencer Graves Sent: Friday, March 21, 2008 11:13 AM To: r-help@r-project.org Subject: [R] function for the average or expected range?; CORECTION Hi, All: ** My previous email on this subject seemed to contain

Re: [R] function for the average or expected range?; CORECTION

2008-03-21 Thread Spencer Graves
Hi, Greg: Thanks very much for the reply. 1. The 'ptukey' and 'qtukey' function are the distribution of the studentized range, not the range. I tried sum(ptukey(x, 2, df=Inf, lower=FALSE))*.1 and got 1.179 vs. 1.128 in the standard table of d2 for n = 2 observations per