If i use the data from 'discoveries', how can i find for example 80%, 90% and 95% credible interval and plot them in a confidence curve?
By using summary(discoveries)
i have that mean a = 3.1, sample size n = 310 and standard deviation s =2.5
can I do the following to find 90%? If so, how can i plot the data i get from several %'s? (80%, 90% 95% etc)
a <- 3.1
s <- 2.5
n <- 310
error <- qnorm(0.95)*s/sqrt(n)
left <- a-error
right <- a+error
left
right