powered by
Generate simulated data from for high-dimensional mean model.
gendata_Mean(n, p, s0= floor(p/2), seed=1, rho= 1, tau=1)
return a list including two components:
a n-by-p matrix, the observed data matrix.
n
p
a p-dimensional vector, the mean vector.
a integer vector, the number of nonzero components of mean.
a positive integer, the sample size.
an positive integer, the variable dimension.
a positive integer, the number of nonzero components of mean .
a nonnegative integer, the random seed, default as 1.
a positive number between 0 and 1, controlling the correlation of data.
a positive number, controlling the magnitude of covriance matrix.
Liu Wei
dat <- gendata_Mean(n=100, p = 100, s0=3) str(dat)
Run the code above in your browser using DataLab