threeClassSim: threeClassSim(nA,nB,nC)

Description Usage Arguments Value Author(s) Examples

View source: R/threeClassSim.R

Description

Creates a simulated data set with three classes (A,B,C).

Usage

1
threeClassSim(nA, nB, nC, wellSep = TRUE)

Arguments

nA

Number of observations to generate from class A. Defaults to NULL.

nB

Number of observations to generate from class B. Defaults to NULL.

nC

Number of observations to generate from class C. Defaults to NULL.

wellSep

Value to indicate whether distributions of three classes should be well separated. Defaults to TRUE.

Value

A list containing the following components:

x$data The simulated data set.

x$key The distribution key for the simulated data set.

Author(s)

Jennifer Starling

Examples

1
2
## Define ctrl object.
datasim <- threeClassSim(100,200,300)

jstarling1/starlib documentation built on May 20, 2019, 2:12 a.m.