Let's say I have a table with 5 rows & 2 columns. The first column is for distribution types (e.g. Normal, Lognormal, Weibull, etc) and the second column is for the respective parameters. I'd like to make a for loop which will create a new data table for each of the 5 rows, where in that new data table, a new column will be added with a random sampling function based on the parameters of the row.
e.g. row 1 --> Normal, (0.1,0.02); Create a new data table with a column that has a formula of
randomnormal(0.1,0.02)
My current challenge is that different distribution types require varying number of parameters. Appreciate some insights on how I should approach this.