gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 08:46:39 24 4
gpt4 key购买 nike

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

最佳答案

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

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>

它被记录为:

Value:

 List with named components as follows:

stats: a vector of length 5, containing the extreme of the lower whisker, the lower ‘hinge’, the median, the upper ‘hinge’ and the extreme of the upper whisker.

   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.

关于R:如何计算 1,5*IQR 晶须的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11958749/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com