View source: R/SimpleSimulation.R
SimpleSimulation | R Documentation |
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.
SimpleSimulation(indvN = 10000, type = 1, degree = 2)
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 |
The function returns a multiresolution dataset.
|
is a value of feature |
|
is value of target variable of individual |
|
is a cluster ID of individual |
|
is equal to |
# Running SimpleSimulation to generate a dataset. DataT<-SimpleSimulation(100,type=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.