Re: [R] Plotting multiple confidence intervals in the same graph

2013-11-21 Thread David Carlson
- David L Carlson Department of Anthropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of PIKAL Petr Sent: Thursday, November 21, 2013 8:13 AM To: Preetam Pal; r-help@r-projec

Re: [R] Plotting multiple confidence intervals in the same graph

2013-11-21 Thread Thomas Stewart
I'd recommend something along these lines: set.seed(32438786) plot.new() plot.window(xlim=c(-.5,.5),ylim=c(1,50)) for(i in 1:50){ X <- rnorm(100) CI <- confint(lm(X~1)) ifelse( sum(0 > CI) == 2 | sum(0 wrote: > Hi, > > I have 100 observations X1,X2,..,X100 and the confidence interval > lim

Re: [R] Plotting multiple confidence intervals in the same graph

2013-11-21 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Preetam Pal > Sent: Thursday, November 21, 2013 12:10 PM > To: r-help@r-project.org > Subject: [R] Plotting multiple confidence intervals in the same gra

[R] Plotting multiple confidence intervals in the same graph

2013-11-21 Thread Preetam Pal
Hi, I have 100 observations X1,X2,..,X100 and the confidence interval limits for the mean at 5% level of significance. I wanted to repeat this procedure say 50 times and see how many times the hypothetical mean is included in the confidence intervals. Analytically I have done this, but I am th