run_lasso_mc_lambda | R Documentation |
run_lasso_mc_lambda
is called from within run_lasso
. It
tunes using multiple cores.
run_lasso_mc_lambda(
y,
L1.x,
L2.x,
L2.unit,
L2.reg,
loss.unit,
loss.fun,
data,
cores,
L2.fe.form,
L1.re,
lambda
)
y |
Outcome variable. A character vector containing the column names of
the outcome variable. A character scalar containing the column name of
the outcome variable in |
L1.x |
Individual-level covariates. A character vector containing the
column names of the individual-level variables in |
L2.x |
Context-level covariates. A character vector containing the
column names of the context-level variables in |
L2.unit |
Geographic unit. A character scalar containing the column
name of the geographic unit in |
L2.reg |
Geographic region. A character scalar containing the column
name of the geographic region in |
loss.unit |
Loss function unit. A character-valued scalar indicating
whether performance loss should be evaluated at the level of individual
respondents ( |
loss.fun |
Loss function. A character-valued scalar indicating whether
prediction loss should be measured by the mean squared error ( |
data |
Data for cross-validation. A |
cores |
The number of cores to be used. An integer indicating the number of processor cores used for parallel computing. Default is 1. |
L2.fe.form |
The fixed effects part of the Lasso classifier formula. The
formula is inherited from |
L1.re |
A list of random effects for the Lasso classifier formula. The
formula is inherited from |
lambda |
Lasso penalty parameter. A numeric |
The cross-validation errors for all models. A list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.