simulateY: Generate the simulated dataset with specified parameters

View source: R/simulateY.R

simulateYR Documentation

Generate the simulated dataset with specified parameters

Description

Generate the simulated dataset with specified parameters

Usage

simulateY(nclust = 4, n_byClust = c(10,20,5,25), J=1000, prop = 0.01,
noise = 0.1,flavor =c("normal", "beta", "binary"),
params = list(c(mean = 1,sd = 1)))

Arguments

nclust

number of clusters

n_byClust

number of samples per cluster

J

number of features in each modality

prop

proportion of cluster related features

noise

percentage of noise adding to each modality

flavor

a vector indicating the data type

params

a list indicating the mean and standard derivation of the simulated data

Value

res, a list of length 2, where the first element is a list of simulated data, while the second element is a vector indicating the true label of each sample

Examples

temp_data <- simulateY(nclust = 4, n_byClust = c(10,20,5,25), J=1000,
prop = 0.01, noise = 0.1,flavor =c("normal", "beta", "binary"),
params = list(c(mean = 1,sd = 1)))

M3JF documentation built on Aug. 14, 2023, 9:08 a.m.