Learn R Programming

ClustMMDD (version 1.0.4)

simulData-methods: Simulate a dataset from a given set of parameters in an instance of modelKS.

Description

Simulate a dataset from a given instance of modelKS containing a set of parameters.

Arguments

object
An instance of modelKS.
N
The size of the sample to simulate.
ploidy
The number of columns for each variable in the data. For example, $ploidy = 2$ for genotypic data from diploid individual.

Value

A list :
  • [["data"]] : The simulated dataset.
  • [["class"]] : The membership class.

Methods

signature(object = "modelKS", N = "numeric", ploidy = "numeric")
Simulate a dataset for a given set of parameters in a modelKS object.

See Also

modelKS, exModelKS.

Examples

Run this code
data(exModelKS)
exModelKS
exData = simulData(exModelKS, 1000, 2)
str(exData)
head(exData$data)
head(exData$class)

Run the code above in your browser using DataLab