Learn R Programming

sdcMicro (version 2.6.3)

dataGen: Fast generation of synthetic data

Description

Fast generation of synthetic data.

Usage

dataGen(x, n = 200)

Arguments

x
data.frame or matix
n
amount of observations for the generated data

Value

  • the generated synthetic data.

Details

Uses the cholesky decomposition to generate synthetic data. For details see at the reference.

References

Have a look at http://vneumann.etse.urv.es/publications/sci/lncs3050FastGen.pdf

Examples

Run this code
data(mtcars)
cov(mtcars[,4:6])
cov(dataGen(mtcars[,4:6]))
pairs(mtcars[,4:6])
pairs(dataGen(mtcars[,4:6]))

Run the code above in your browser using DataLab