animals: #Create a dataset for classification

Description Usage Arguments Value Examples

Description

#Create a dataset for classification

Usage

1
animals(rho, sdXY, muXY, noSim, seed = 5341)

Arguments

rho

A vector of 3 numbers belonging to [-1,1] which indicate the correlation between two features of the three classes to simulate.

sdXY

A list of 3 vectors which indicate the standard deviation of features of a class.

muXY

A list of 3 vectors which indicate the mean of features of a class.

noSim

A vector of 3 numbers of no of simulations desired for each class

seed

Specifies seed. Default Value = 1234

Value

Data Frame of simulations with their classes and coded dummy variables

Examples

1
2
3
4
5
noAnimals <- c(200, 200, 200)
rho  <- c(-0.2, 0.8, 0.02)
sdXY <- list(c(2, 8), c(3.5, 12), c(1, 3))
muXY <- list(c(6, 30), c(12, 50), c(4,10))
animalsDF <- animals(rho, sdXY, muXY, noAnimals)

rishi1226/lClass documentation built on May 27, 2019, 9:10 a.m.