xmat_discrete_self: Generate initial designs within ForLion algorithms

View source: R/xmat_discrete_self.R

xmat_discrete_selfR Documentation

Generate initial designs within ForLion algorithms

Description

Generate initial designs within ForLion algorithms

Usage

xmat_discrete_self(xlist, rowmax = NULL)

Arguments

xlist

a list of factor levels within ForLion algorithms, for example, a binary factor might be c(-1,1), a continuous factor within range of (25,45) will be c(25, 45).

rowmax

maximum number of rows of the design matrix

Value

design matrix of all possible combinations of discrete factors levels with min and max of the continuous factors.

Examples

#define list of factor levels for one continuous factor, four binary factors
factor.level.temp = list(c(25,45),c(-1,1),c(-1,1),c(-1,1),c(-1,1))
xmat_discrete_self(xlist = factor.level.temp)



ForLion documentation built on June 10, 2025, 5:13 p.m.