Learn R Programming

ForLion (version 0.1.0)

xmat_discrete_self: Generate GLM random initial designs within ForLion algorithm

Description

Generate GLM random initial designs within ForLion algorithm

Usage

xmat_discrete_self(xlist, rowmax = NULL)

Value

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

Arguments

xlist

a list of factor levels within ForLion algorithm, 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

Examples

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


Run the code above in your browser using DataLab