Hello everyone, I am trying to create a design matrix for simulation puposes using for loops with vectors, but I am struggeling with what to write in the inner most loop. The numbers are arbitrary, to get the hang of it, I need to be able to scale it up for vectors with 100 values or more.
The code looks as follows:
The result should be a matrix with all posibilities of combinations of the 3 vectors and should look like:
Hope you guys can help, thanks!