Hello Let's say I want to create a data set with all possible combinations of 9 categorical varaibles . Here are the possible values for each variable: X1- 1,2,3 X2-1,2 X3-1,2 X4-1,2,3 X5-1,2 X6-1,2,3 X7-1,2,3,4 X8-1,2 X9-1,2,3 So there are 5184 possible combinations. (3×2×2×3×2×3×4×2×3=5184) What is the way to create the desired data set with all possible combinations (the data set will have 9 columns :x1-x9) May you please show the solution via- Way1- Cartesian product Way2- Do loop Or any other nice way Cheers
... View more