Description Usage Arguments Value Examples
Main function
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
X |
matrix of covariates (of size n*p) |
Y |
matrix of responses (of size n*m) |
procedure |
among 'LassoMLE' or 'LassoRank' |
selecMod |
method to select a model among 'DDSE', 'DJump', 'BIC' or 'AIC' |
gamma |
integer for the power in the penaly, by default = 1 |
mini |
integer, minimum number of iterations in the EM algorithm, by default = 10 |
maxi |
integer, maximum number of iterations in the EM algorithm, by default = 100 |
eps |
real, threshold to say the EM algorithm converges, by default = 1e-4 |
kmin |
integer, minimum number of clusters, by default = 2 |
kmax |
integer, maximum number of clusters, by default = 10 |
rank.min |
integer, minimum rank in the low rank procedure, by default = 1 |
rank.max |
integer, maximum rank in the low rank procedure, by default = 5 |
ncores_outer |
Number of cores for the outer loop on k |
ncores_inner |
Number of cores for the inner loop on lambda |
thresh |
real, threshold to say a variable is relevant, by default = 1e-8 |
grid_lambda, |
a vector with regularization parameters if known, by default numeric(0) |
size_coll_mod |
(Maximum) size of a collection of models, by default 50 |
fast |
TRUE to use compiled C code, FALSE for R code only |
verbose |
TRUE to show some execution traces |
plot |
TRUE to plot the selected models after run |
The selected model (except if the collection of models has less than 11 models, the function returns the collection as it can not select one using Capushe)
1 2 3 4 5 6 7 8 9 10 11 | n = 50; m = 10; p = 5
beta = array(0, dim=c(p,m,2))
beta[,,1] = 1
beta[,,2] = 2
data = generateXY(n, c(0.4,0.6), rep(0,p), beta, diag(0.5, p), diag(0.5, m))
X = data$X
Y = data$Y
res = runValse(X, Y, kmax = 5, plot=FALSE)
X <- matrix(runif(100), nrow=50)
Y <- matrix(runif(100), nrow=50)
res = runValse(X, Y, plot=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.