BookmarkSubscribeRSS Feed
nazmul
Quartz | Level 8

Hello Everyone,

 

I have 48 industries and the number of mergers in each industry in each month from the year 1980 to 1989 (120 Months). Taking the total number of bids over the entire period for a given industry, I want to simulate 1000 distributions of that number of occurrences of industry member involvement in a bid over a 120-month period by randomly assigning each occurrence to a month where the probability of assignment is 1/120 for each month. I have no idea where to start.  Please help. 

 

I tried the following code. But it did not work:

 

sasfile have load;
proc surveyselect data=have out=outboot
seed=30459584
method=urs samprate=1 outhits
rep=1000 noprint;
run;
sasfile have close;
ods listing close;
proc sort data=outboot; by Aindus48 year month Replicate; run;
proc univariate data=outboot noprint;
var count;
by Aindus48 year month Replicate;
output out=outall kurtosis=curt;
run;
ods listing;
proc univariate data=outall noprint;
var curt;
by Aindus48 year month;
output out=final pctlpts=2.5, 97.5 pctlpre=ci;
run;

1 REPLY 1
PGStats
Opal | Level 21

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 752 views
  • 0 likes
  • 2 in conversation