R:如何计算1,5*IQR晶须的值

Mat*_*unz 2 statistics r boxplot

如何计算1,5×IQR的上边界和下边界的值?

Dir*_*tel 6

您可以使用以下boxplot.stats()函数boxplot():

R> boxplot.stats(rnorm(100))
$stats
[1] -2.3865817 -0.7195878  0.0889332  0.6237745  2.3702410

$n
[1] 100

$conf
[1] -0.123318  0.301184

$out
numeric(0)

R> 
Run Code Online (Sandbox Code Playgroud)

据记载,这是:

值:

 List with named components as follows:
Run Code Online (Sandbox Code Playgroud)

stats:长度为5的矢量,包含下部晶须的极端,下部"铰链",中间,上部"铰链"和上部晶须的末端.

   n: the number of non-‘NA’ observations in the sample.

conf: the lower and upper extremes of the ‘notch’ (‘if(do.conf)’).
      See the details.

 out: the values of any data points which lie beyond the extremes
      of the whiskers (‘if(do.out)’).
 Note that ‘$stats’ and ‘$conf’ are sorted in _in_creasing order,
 unlike S, and that ‘$n’ and ‘$out’ include any ‘+- Inf’ values.
Run Code Online (Sandbox Code Playgroud)