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-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 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
  • 695 views
  • 0 likes
  • 2 in conversation