Skip to content
Prev 199031 / 398506 Next

bargraph.ci - CI and color question.

On Tue, 2009-11-03 at 10:20 -0600, Michael Just wrote:
You do +/- 1.96*se to get the approximate 95% CI of the mean. +/-
1.96*SD gives the 95% CI of the distribution.

bargraph.CI(x.factor = dose, response = len, data = ToothGrowth, ci.fun=
function(x) c(mean(x)-1.96*se(x), mean(x)+1.96*se(x)) )