datgen {mhtboot} | R Documentation |
datgen
Description
Function to generate data from multivariate normal with different mean.
Usage
datgen(n, m, m0, sigeff, Sigma)
Arguments
n |
number of samples |
m |
number of cords |
m0 |
number of non sparse elements |
sigeff |
magnitude of signal |
Sigma |
Covariance matrix |
Details
This function generates data from multivariate normal distribution with given covariance matrix. The mean values are either zero or constant sigeff, randomly permuted among the coordinates.
Value
X data matrix of size nxm
Examples
## Not run:
n = 50;m = 250;m0 = 20;
sigeff = 1;
Sigma <- 0.25*diag(m)
X <- datgen(n,m,m0,sigeff,Sigma = Sigma)
## End(Not run)
[Package mhtboot version 1.3.3 Index]