simulationData function

Simulation of Gaussian vector

Simulation of Gaussian vector

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.

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.

Returns

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

Author(s)

Saip Ciss saip.ciss@wanadoo.fr

Examples

X <- simulationData(100,10) summary(X)
  • Maintainer: Saip Ciss
  • License: BSD_3_clause + file LICENSE
  • Last published: 2022-06-21

Useful links