| create.linear.data | R Documentation |
Create linear model data Y = X * beta + epsilon with
X as a n * p matrix of multivariate normal distributed
rows with covariance matrix
1 rho rho^2 rho^3 ... rho^p rho 1 rho rho^2 ... rho^(p-1) rho^2 rho 1 rho ... rho^(p-2) ... rho^p ...
epsilon is standard normally distributed and
beta[i] = beta0 * q ^ (i - 1) for i = 1,..., p.
If permute == TRUE, columns of X as well as beta are permuted before
the linear model equation is evaluated to generate Y. These permuted
values are also the ones returned in the result.
$orig.features are the features with beta > 1 / sqrt(n).
create.linear.data(n, p, q = exp(-1), beta0 = 1, rho = 0, permute = TRUE)
n |
|
p |
|
q |
|
beta0 |
|
rho |
|
permute |
|
list(X=[Matrix], Y=[vector], beta = [vector], orig.features = logical)
Other Artificial Datasets:
clonetask(),
create.hypersphere.data(),
create.linear.toy.data(),
create.regr.task(),
task.add.permuted.cols(),
task.add.random.cols()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.