Learn R Programming

ForLion (version 0.1.0)

discrete_rv_self: function to generate discrete uniform random variables for initial random design points in ForLion

Description

function to generate discrete uniform random variables for initial random design points in ForLion

Usage

discrete_rv_self(n, xlist)

Value

list of discrete uniform random variables

Arguments

n

number of discrete random variables

xlist

list of levels for variables to be generated

Examples

Run this code
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