powered by
function to generate discrete uniform random variables for initial random design points in ForLion
discrete_rv_self(n, xlist)
list of discrete uniform random variables
number of discrete random variables
list of levels for variables to be generated
n=3 #three discrete random variables xlist=list(c(-1,1),c(-1,1),c(-1,0,1)) #two binary and one three-levels discrete_rv_self(n, xlist)
Run the code above in your browser using DataLab