generate_sparse | R Documentation |
Sparse random projection matrix
generate_sparse(rp, m, included_vector, x = NULL, y = NULL)
rp |
object of class |
m |
goal dimension, which will be randomly sampled in the SPAR algorithm |
included_vector |
integer vector of column indices for the variables to be included in the random projection. These indices are produced in the screening step of the SPAR algorithm. |
x |
matrix of predictors |
y |
vector of response variable |
(possibly sparse) matrix with m rows and
length(included_vector)
columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.