simulate_matrix {ProcMod} | R Documentation |
Points are simulated by drawing values of each dimension from a normal distribution of mean 0 and standard deviation equals to 1. The mean of each dimension is forced to 0 (data are centred). By default variable are also scaled to enforce a strandard deviation strictly equal to 1. Covariances between dimensions are not controled. Therefore they are expected to be equal to 0 and reflect only the random distribution of the covariance between two random vectors.
simulate_matrix(n, p, equal_var = TRUE)
n |
an |
p |
an |
equal_var |
a |
a numeric matrix of n
rows and p
columns
Eric Coissac
Christelle Gonindard-Melodelima
sim1 <- simulate_matrix(25,10)
class(sim1)
dim(sim1)