error_checks | R Documentation |
error_checks()
checks for incorrect data entry in autoMrP()
call.
error_checks(
y,
L1.x,
L2.x,
L2.unit,
L2.reg,
L2.x.scale,
pcs,
folds,
bin.proportion,
bin.size,
survey,
census,
ebma.size,
k.folds,
cv.sampling,
loss.unit,
loss.fun,
best.subset,
lasso,
pca,
gb,
svm,
mrp,
best.subset.L2.x,
lasso.L2.x,
gb.L2.x,
svm.L2.x,
mrp.L2.x,
gb.L2.unit,
gb.L2.reg,
lasso.lambda,
lasso.n.iter,
uncertainty,
boot.iter
)
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 |
L2.x.scale |
Scale context-level covariates. A logical argument
indicating whether the context-level covariates should be normalized.
Default is |
pcs |
Principal components. A character vector containing the column
names of the principal components of the context-level variables in
|
folds |
EBMA and cross-validation folds. A character scalar containing
the column name of the variable in |
bin.proportion |
Proportion of ideal types. A character scalar
containing the column name of the variable in |
bin.size |
Bin size of ideal types. A character scalar containing the
column name of the variable in |
survey |
Survey data. A |
census |
Census data. A |
ebma.size |
EBMA fold size. A number in the open unit interval
indicating the proportion of respondents to be allocated to the EBMA fold.
Default is |
k.folds |
Number of cross-validation folds. An integer-valued scalar
indicating the number of folds to be used in cross-validation. Default is
|
cv.sampling |
Cross-validation sampling method. A character-valued
scalar indicating whether cross-validation folds should be created by
sampling individual respondents ( |
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 ( |
best.subset |
Best subset classifier. A logical argument indicating
whether the best subset classifier should be used for predicting outcome
|
lasso |
Lasso classifier. A logical argument indicating whether the
lasso classifier should be used for predicting outcome |
pca |
PCA classifier. A logical argument indicating whether the PCA
classifier should be used for predicting outcome |
gb |
GB classifier. A logical argument indicating whether the GB
classifier should be used for predicting outcome |
svm |
SVM classifier. A logical argument indicating whether the SVM
classifier should be used for predicting outcome |
mrp |
MRP classifier. A logical argument indicating whether the standard
MRP classifier should be used for predicting outcome |
best.subset.L2.x |
Best subset context-level covariates. A character
vector containing the column names of the context-level variables in
|
lasso.L2.x |
Lasso context-level covariates. A character vector
containing the column names of the context-level variables in
|
gb.L2.x |
GB context-level covariates. A character vector containing the
column names of the context-level variables in |
svm.L2.x |
SVM context-level covariates. A character vector containing
the column names of the context-level variables in |
mrp.L2.x |
MRP context-level covariates. A character vector containing
the column names of the context-level variables in |
gb.L2.unit |
GB L2.unit. A logical argument indicating whether
|
gb.L2.reg |
GB L2.reg. A logical argument indicating whether
|
lasso.lambda |
Lasso penalty parameter. A numeric |
lasso.n.iter |
Lasso number of lambda values. An integer-valued scalar
specifying the number of lambda values to search over. Default is
|
uncertainty |
Uncertainty estimates. A logical argument indicating
whether uncertainty estimates should be computed. Default is |
boot.iter |
Number of bootstrap iterations. An integer argument
indicating the number of bootstrap iterations to be computed. Will be
ignored unless |
No return value, called for detection of errors in autoMrP() call.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.