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;
Please check my answer in your original question.
https://communities.sas.com/t5/General-SAS-Programming/Calculating-wave-of-mergers/m-p/387534
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!
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: