BookmarkSubscribeRSS Feed
Rasheed
Calcite | Level 5

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

6 REPLIES 6
Steelers_In_DC
Barite | Level 11

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

Rasheed
Calcite | Level 5

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

I am using this program plz help me in this regard

ballardw
Super User

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.

Rasheed
Calcite | Level 5

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

Reeza
Super User

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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 6 replies
  • 1174 views
  • 0 likes
  • 4 in conversation