BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
HappySASUE
Quartz | Level 8

Hi 

I need to do simulation analysis for survival study. I have one real clinical dataset with only 40 patients. need to create 1000 simulation samples.   

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

I'm not aware of any quick user friendly references. I believe there's a few answered question on here about this and the topic is covered in Rick Wicklin's Simulating data book. 

 

It also depends on if you're simulating via or just randomly repeating data. You could expand your 40 to 1000 using PROC SURVEYSELECT for example, obviously sample with repetition. 

 


@HappySASUE wrote:

Hi 

I need to do simulation analysis for survival study. I have one real clinical dataset with only 40 patients. need to create 1000 simulation samples.   

Thanks


 

View solution in original post

4 REPLIES 4
mkeintz
PROC Star

@HappySASUE wrote:

Hi 

I need to do simulation analysis for survival study. I have one real clinical dataset with only 40 patients. need to create 1000 simulation samples.   

Thanks


 

How would you create one simulation sample?   And BTW, what sample size do you intend to generate?

 

I presume by "simulation" that you intend to start out with a sequence of hazard rates, then randomly apply those hazard rates to get period-by-period survivals, yes?  What is the relevance of your clinical dataset?  Is it the source of your hazard rates?

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------
HappySASUE
Quartz | Level 8

Thank you for your reply.

Yes the clinical dataset is the source of my hazard rates, also with independent variables, such as age, gender.... "Simulation" here I mean is to create samples which "mimic" the real clinical dataset.   The sample size could vary, 30, 40, 400...etc. 

Reeza
Super User

I'm not aware of any quick user friendly references. I believe there's a few answered question on here about this and the topic is covered in Rick Wicklin's Simulating data book. 

 

It also depends on if you're simulating via or just randomly repeating data. You could expand your 40 to 1000 using PROC SURVEYSELECT for example, obviously sample with repetition. 

 


@HappySASUE wrote:

Hi 

I need to do simulation analysis for survival study. I have one real clinical dataset with only 40 patients. need to create 1000 simulation samples.   

Thanks


 

HappySASUE
Quartz | Level 8

Thank you. I will take a look of this book.  This is a very useful book! 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1053 views
  • 0 likes
  • 3 in conversation