arg.checks.common {precmed} | R Documentation |
Check arguments that are common to all types of outcome
USed inside arg.checks()
Description
Check arguments that are common to all types of outcome
USed inside arg.checks()
Usage
arg.checks.common(
fun,
ps.method,
minPS,
maxPS,
higher.y = NULL,
abc = NULL,
prop.cutoff = NULL,
prop.multi = NULL,
B = NULL,
Kfold = NULL,
plot.gbmperf = NULL,
tree.depth = NULL,
n.trees.boosting = NULL,
error.maxNR = NULL,
max.iterNR = NULL,
tune = NULL,
train.prop = NULL,
cv.n = NULL,
error.max = NULL,
max.iter = NULL,
n.boot = NULL,
plot.boot = NULL
)
Arguments
fun |
A function for which argument check is needed; "pm" for |
ps.method |
A character value for the method to estimate the propensity score.
Allowed values include one of:
|
minPS |
A numerical value (in [0, 1]) below which estimated propensity scores should be
truncated. Default is |
maxPS |
A numerical value (in (0, 1]) above which estimated propensity scores should be
truncated. Must be strictly greater than |
higher.y |
A logical value indicating whether higher ( |
abc |
A logical value indicating whether the area between curves (ABC) should be calculated
at each cross-validation iterations, for each |
prop.cutoff |
A vector of numerical values (in (0, 1]) specifying percentiles of the
estimated log CATE scores to define nested subgroups. Each element represents the cutoff to
separate observations in nested subgroups (below vs above cutoff).
The length of |
prop.multi |
A vector of numerical values (in [0, 1]) specifying percentiles of the
estimated log CATE scores to define mutually exclusive subgroups.
It should start with 0, end with 1, and be of |
B |
A positive integer specifying the number of time cross-fitting is repeated in
|
Kfold |
A positive integer specifying the number of folds (parts) used in cross-fitting
to partition the data in |
plot.gbmperf |
A logical value indicating whether to plot the performance measures in
boosting. Used only if |
tree.depth |
A positive integer specifying the depth of individual trees in boosting
(usually 2-3). Used only if |
n.trees.boosting |
A positive integer specifying the maximum number of trees in boosting
(usually 100-1000). Used only if |
error.maxNR |
A numerical value > 0 indicating the minimum value of the mean absolute
error in Newton Raphson algorithm. Used only if |
max.iterNR |
A positive integer indicating the maximum number of iterations in the
Newton Raphson algorithm. Used only if |
tune |
A vector of 2 numerical values > 0 specifying tuning parameters for the
Newton Raphson algorithm. |
train.prop |
A numerical value (in (0, 1)) indicating the proportion of total data used
for training. Default is |
cv.n |
A positive integer value indicating the number of cross-validation iterations.
Default is |
error.max |
A numerical value > 0 indicating the tolerance (maximum value of error)
for the largest standardized absolute difference in the covariate distributions or in the
doubly robust estimated rate ratios between the training and validation sets. This is used
to define a balanced training-validation splitting. Default is |
max.iter |
A positive integer value indicating the maximum number of iterations when
searching for a balanced training-validation split. Default is |
n.boot |
A numeric value indicating the number of bootstrap samples used. This is only relevant
if |
plot.boot |
A logic value indicating whether histograms of the bootstrapped log(rate ratio) should
be produced at every |
Value
Nothing. Will stop if arguments are incorrect.