From: Briggs, Meredith M <Meredith.Briggs_at_team.telstra.com>

Date: Tue 10 May 2005 - 14:44:59 EST

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue May 10 15:00:04 2005

Date: Tue 10 May 2005 - 14:44:59 EST

Hello

I'm not sure I'm using boot correctly:

x<-BUCKET[, j] mean.fun<-function(x,i) {mean(x[x>0])} median.fun<-function(x,i) {median(x[x>0])} print(mean.fun(x)) print(median.fun(x)) B.mean<-boot(x,mean.fun,R=999) B.median<-boot(x,mean.fun,R=999) print(B.mean) print(B.median)

I need the 'boot' function to sample repeatedly from the density distribution of the raw data and calculate means, medians etc.

How do I pull out the mean, median, deviations and percentiles into variables within R?

thanks

Meredith

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue May 10 15:00:04 2005

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:31:40 EST
*