dataSimulate {inTrees} | R Documentation |
Simulate data
Description
Simulate data
Usage
dataSimulate(flag = 1, nCol = 20, nRow = 1000)
Arguments
flag |
1 (default): team optimization; 2: non-linear; 3: linear. |
nCol |
the number of columns in the data set. must >= 2. |
nRow |
the number of rows in the data set. |
Value
predictor variable matrix and target variable
Examples
res <- dataSimulate(flag=1)
X <- res$X;
target <- res$target
[Package inTrees version 1.4 Index]