Re: [R] ggplot stat_summary (mean_cl_boot)

2011-11-09 Thread Nathan Miller
For all those that are interested. To adjust the number of reps in the stat_summary() "mean_cl_boot" function simply specify "B" to the number of bootstrap resamples. I set B to 2000 resamplings below. stat_summary(fun.data="mean_cl_boot", geom="errorbar",width=0.1,colour = "red", B=2000 ) If yo

Re: [R] ggplot stat_summary(mean_cl_boot)

2011-11-09 Thread David Winsemius
On Nov 9, 2011, at 4:30 PM, Ben Bolker wrote: David Winsemius comcast.net> writes: On Nov 9, 2011, at 2:59 PM, Nathan Miller wrote: Hello, This is a pretty simple question, but after spending quite a bit of time looking at "Hmisc" and using Google, I can't find the answer. If I use stat

Re: [R] ggplot stat_summary (mean_cl_boot)

2011-11-09 Thread David Winsemius
On Nov 9, 2011, at 4:35 PM, Nathan Miller wrote: Sorry, I didn't realize I was being so obscure. Within ggplot it is possible to use stat_summary() to generate confidence intervals about a mean. One method for generating these CI assumes normality. The other uses bootstrapping to generate

Re: [R] ggplot stat_summary (mean_cl_boot)

2011-11-09 Thread Nathan Miller
Ok, I got it. smean.cl.boot(x, conf.int=.95, B=1000, na.rm=TRUE, reps=FALSE) Looks like its 1000. Cool. Thanks for the help, Nate On Wed, Nov 9, 2011 at 1:35 PM, Nathan Miller wrote: > Sorry, I didn't realize I was being so obscure. > > Within ggplot it is possible to use stat_summary() to g

Re: [R] ggplot stat_summary (mean_cl_boot)

2011-11-09 Thread Nathan Miller
Sorry, I didn't realize I was being so obscure. Within ggplot it is possible to use stat_summary() to generate confidence intervals about a mean. One method for generating these CI assumes normality. The other uses bootstrapping to generate the CI. I am using the second method which requires code

Re: [R] ggplot stat_summary (mean_cl_boot)

2011-11-09 Thread David Winsemius
On Nov 9, 2011, at 4:10 PM, David Winsemius wrote: mean_cl_boot OK. Things do change. Hadley has written a wrapper for some of the Hmisc functions and you appear to be looking for smean.cl.boot() (Note that Hadley's functions use "_"'s and Harrells use "."'s. And this could be found by

Re: [R] ggplot stat_summary(mean_cl_boot)

2011-11-09 Thread Ben Bolker
David Winsemius comcast.net> writes: > On Nov 9, 2011, at 2:59 PM, Nathan Miller wrote: > > > Hello, > > > > This is a pretty simple question, but after spending quite a bit of > > time > > looking at "Hmisc" and using Google, I can't find the answer. > > > > If I use stat_summary(fun.data="m

Re: [R] ggplot stat_summary (mean_cl_boot)

2011-11-09 Thread David Winsemius
On Nov 9, 2011, at 2:59 PM, Nathan Miller wrote: Hello, This is a pretty simple question, but after spending quite a bit of time looking at "Hmisc" and using Google, I can't find the answer. If I use stat_summary(fun.data="mean_cl_boot") in ggplot to generate 95% confidence intervals, h

[R] ggplot stat_summary (mean_cl_boot)

2011-11-09 Thread Nathan Miller
Hello, This is a pretty simple question, but after spending quite a bit of time looking at "Hmisc" and using Google, I can't find the answer. If I use stat_summary(fun.data="mean_cl_boot") in ggplot to generate 95% confidence intervals, how many bootstrap iterations are preformed by default? Can