SimpleSimulation {MRReg} | R Documentation |
SimpleSimulation
Description
SimpleSimulation is a support function for generating multiresolution datasets.
All simulation types have three layers except the type 6 has four layers.
The type-1 simulation has all individuals belong to the same homogeneous partition in the first layer.
The type-2 simulation has four homogeneous partitions in a second layer. Each partition has its own models.
The type-3 simulation has eight homogeneous partitions in a third layer. Each partition has its own models
The type-4 simulation has one homogeneous partition in a second layer, four homogeneous partitions in a third layer, and eight homogeneous partitions in a fourth layer. Each partition has its own model.
The type-5 simulation is similar to type-4 simulation but Y=h(X) is an exponential function.
The type-6 simulation is similar to type-4 simulation but Y=h(X) is a polynomial function with degree
parameter.
Usage
SimpleSimulation(indvN = 10000, type = 1, degree = 2)
Arguments
indvN |
is a number of individuals per homogeneous partition. |
type |
is a type of simulation dataset. There are four types. |
degree |
is a degree parameter of a polynomial function for type-5 simulation |
Value
The function returns a multiresolution dataset.
DataT$X[i , d] |
is a value of feature |
DataT$Y[i] |
is value of target variable of individual |
clsLayer[i , j] |
is a cluster ID of individual |
DataT$TrueFeature[i] |
is equal to |
Examples
# Running SimpleSimulation to generate a dataset.
DataT<-SimpleSimulation(100,type=1)