Learn R Programming

randomUniformForest (version 1.0.6)

simulationData: Simulation of gaussian vector

Description

Simulate a gaussian vector with 'p' independent components of length 'n'. Parameters of each component are uniformly random and are taken between -10 and 10, with (absolute) standard deviation equals mean.

Usage

simulationData(n, p, distrib = rnorm, colinearity = FALSE)

Arguments

n
number of observations to draw.
p
number of variables to draw.
distrib
distribution to use. Currently only gaussian one is supported.
colinearity
not currently used.

Value

  • a matrix with 'n' observations and 'p' variables.

Examples

Run this code
X <- simulationData(100,10)
summary(X)

Run the code above in your browser using DataLab