Re: [R] sample size in bootstrap(boot)

From: Nordlund, Dan (DSHS/RDA) <NordlDJ_at_dshs.wa.gov>
Date: Wed, 26 Mar 2008 10:45:17 -0700

I may have misread your original posting, I thought you were using the boot package but I don't see any function bootstrap. I also don't see any documentation for the sampler parameter. What package are you using? If it is possible, I am sure I will be corrected.  

Sorry, I can't be of more help,  

Dan

Daniel J. Nordlund
Research and Data Analysis
Washington State Department of Social and Health Services Olympia, WA 98504-5204  


	From: Zaihra T [mailto:zaihra_at_uwindsor.ca] 
	Sent: Wednesday, March 26, 2008 8:56 AM
	To: Nordlund, Dan (DSHS/RDA); Jan T. Kim; R-help_at_r-project.org
	Subject: Re: [R] sample size in bootstrap(boot)
	
	

	Hi Dan,

	Thanks for response yes i do know that bootstrap samples generated by function boot are of the same size as original dataset but somewhere in the R-help threads i saw a suggestion that one can control sample size (n) by using the following command(plz see below) but my problem is it doesnt work it gives error ( error in : n * nboot : non-numeric argument to binary operator)

	bootstrap(data,statistic,sampler=samp.bootstrap(size=20))

	 this is what somebody on R help suggested... can we fix that error somehow ? 

	On Wed, 26 Mar 2008 08:26:22 -0700 "Nordlund, Dan (DSHS/RDA)" wrote: 

> > -----Original Message-----
> > From: r-help-bounces_at_r-project.org
> > [mailto:r-help-bounces_at_r-project.org] On Behalf Of Zaihra T
> > Sent: Wednesday, March 26, 2008 7:57 AM
> > To: Jan T. Kim; R-help_at_r-project.org
> > Subject: ! [R] sample size in bootstrap(boot)
> >
> >
> > Hi,
> >
> > Can someone tell me how to control sample size (n) in
> > bootstrap function
> > boot in R. Can we give some option like we give for #
> > of repeated
> > samples(R=say 100).
> >
> > Will appreciate any help.
> >
> > thanks
>
> I don't believe so. Isn't one of the differences between the bootstrap and other kinds of
> resampling that the bootstrap samples with replacement a sample of the same size as the
> original data? You could use the function sample() to select your subsets and compute your
> statistics of interest.
>
> Hope this is helpful,
>
> Dan
>
> Daniel J. Nordlund
> Research and Data Analysis
> Washington State Department of Social and! Health Services
> Olympia, WA 98504-5204
>
&g t;
>
[[alternative HTML version deleted]] ______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 26 Mar 2008 - 21:12:37 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 26 Mar 2008 - 21:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive