Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是新的 R 用户,在使用引导包时遇到问题。我想要做的就是使用自举生成围绕数字向量均值的置信区间,例如:
x <- rnorm(100, 1, .5)
有小费吗?
以下内容还不够吗?
library(boot) x <- rnorm(100, 1, .5) b <- boot(x, function(u,i) mean(u[i]), R = 999) boot.ci(b, type = c("norm", "basic", "perc"))