View source: R/genericFunctions.R
simulationData | R Documentation |
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)
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. |
a matrix with 'n' observations and 'p' variables.
Saip Ciss saip.ciss@wanadoo.fr
X <- simulationData(100,10) summary(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.