ebma {autoMrP} | R Documentation |
Bayesian Ensemble Model Averaging EBMA
Description
ebma
tunes EBMA and generates weights for classifier averaging.
Usage
ebma(
ebma.fold,
y,
L1.x,
L2.x,
L2.unit,
L2.reg,
pc.names,
post.strat,
n.draws,
tol,
best.subset.opt,
pca.opt,
lasso.opt,
gb.opt,
svm.opt,
deep.mrp,
verbose,
cores
)
Arguments
ebma.fold |
New data for EBMA tuning. A list containing the the data that must not have been used in classifier training. |
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 |
pc.names |
Principal Component Variable names. A character vector containing the names of the context-level principal components variables. |
post.strat |
Post-stratification results. A list containing the best models for each of the tuned classifiers, the individual level predictions on the data classifier trainig data and the post-stratified context-level predictions. |
n.draws |
EBMA number of samples. An integer-valued scalar specifying
the number of bootstrapped samples to be drawn from the EBMA fold and used
for tuning EBMA. Default is |
tol |
EBMA tolerance. A numeric vector containing the tolerance values
for improvements in the log-likelihood before the EM algorithm stops
optimization. Values should range at least from |
best.subset.opt |
Tuned best subset parameters. A list returned from
|
pca.opt |
Tuned best subset with principal components parameters. A list
returned from |
lasso.opt |
Tuned lasso parameters. A list returned from
|
gb.opt |
Tuned gradient tree boosting parameters. A list returned from
|
svm.opt |
Tuned support vector machine parameters. A list returned from
|
deep.mrp |
Deep MRP classifier. A logical argument indicating whether
the deep MRP classifier should be used for predicting outcome |
verbose |
Verbose output. A logical argument indicating whether or not
verbose output should be printed. Default is |
cores |
The number of cores to be used. An integer indicating the number of processor cores used for parallel computing. Default is 1. |