SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

Bootstrap sampling

Reply
Frequent Contributor
Posts: 84

Bootstrap sampling

I wrote a program for bootstrap sample generation

It works fine but It has one issue

when I run that SAS program twice then newer bootstrap samples are merged with previously generated bootstrap samples in SAS output

E.g, First I generated 100 bootstrap sample and calculated 95 percentile from it

But when I again run that program then SAS out put show 200 bootstrap samples therefore 95 percentile is misleading in this case

Please help me how to resolve this issue

Valued Guide
Posts: 858

Re: Bootstrap sampling

I doubt anyone will have any valuable input without being able to look at your code.

Frequent Contributor
Posts: 84

Re: Bootstrap sampling

http://www.math.uni-bremen.de/~pigeot/software/engl_boot_sas.html

I am using this program plz help me in this regard

Frequent Contributor
Posts: 84

Re: Bootstrap sampling

Super User
Posts: 10,552

Re: Bootstrap sampling

It sounds like somewhere you are appending data to a dataset. The first step would be either to deleted the existing dataset or direct your output to a new dataset.

Other than that, details are needed to provide more specific help.

If you have code look for some place with Proc Append, Proc Datasets with append, a data step with 2 or more datasets on a Set statement or Proc SQL with a Union join.

Frequent Contributor
Posts: 84

Re: Bootstrap sampling

here I am inserting a link of program that I am using

I would be really grate full to you if you could mention me the correction in it

http://www.math.uni-bremen.de/~pigeot/software/engl_boot_sas.html

Super User
Posts: 17,963

Re: Bootstrap sampling

Add a parameter to your program to ensure that it creates a uniquely named data set for each iteration/call.

Ask a Question
Discussion stats
  • 6 replies
  • 444 views
  • 0 likes
  • 4 in conversation