Bootstrap R trust intervals

I am a new R user, and I am having problems using the download package. All I want to do is use loading to create confidence intervals around the average for a vector of numbers, for example:

x <- rnorm(100, 1, .5) 

Any tips?

+4
source share
1 answer

Is the following missing?

 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")) 
+10
source

Source: https://habr.com/ru/post/1396755/


All Articles