powered by
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)
number of observations to draw.
number of variables to draw.
distribution to use. Currently only Gaussian one is supported.
not currently used.
a matrix with 'n' observations and 'p' variables.
# NOT RUN { X <- simulationData(100,10) summary(X) # }
Run the code above in your browser using DataLab