i have two variables first variables is number of teams, second variable is number of times this are two my variables ,
example : i have 10 cricket teams ,10 teams play each other only one time combination , total how many matches is happened , 45 matches is happened . how to calculate on sas.
data ds;
infile datalines ;
input no_of_teams no_of_times;
cards;
10 1
;
run;
total matches happened 45 how to calculate on sas anyone can help me this logic .
Hello @sas_university,
You can use the COMB function:
data want;
set ds;
no_of_matches=comb(no_of_teams,2)*no_of_times;
run;
Hello @sas_university,
You can use the COMB function:
data want;
set ds;
no_of_matches=comb(no_of_teams,2)*no_of_times;
run;
@FreelanceReinh tq sir
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.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.