The R Project SVN R

Rev

Rev 59039 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61168
Line 18... Line 18...
18
}
18
}
19
\details{
19
\details{
20
  Note that this function computes the quartiles using the
20
  Note that this function computes the quartiles using the
21
  \code{\link{quantile}} function rather than following
21
  \code{\link{quantile}} function rather than following
22
  Tukey's recommendations,
22
  Tukey's recommendations,
23
  i.e., \code{IQR(x) = quantile(x,3/4) - quantile(x,1/4)}.
23
  i.e., \code{IQR(x) = quantile(x, 3/4) - quantile(x, 1/4)}.
24
 
24
 
25
  For normally \eqn{N(m,1)} distributed \eqn{X}, the expected value of
25
  For normally \eqn{N(m,1)} distributed \eqn{X}, the expected value of
26
  \code{IQR(X)} is \code{2*qnorm(3/4) = 1.3490}, i.e., for a normal-consistent
26
  \code{IQR(X)} is \code{2*qnorm(3/4) = 1.3490}, i.e., for a normal-consistent
27
  estimate of the standard deviation, use \code{IQR(x) / 1.349}.
27
  estimate of the standard deviation, use \code{IQR(x) / 1.349}.
28
}
28
}