Usage
ps(formula = formula(data),
data,
n.trees = 10000,
interaction.depth = 3,
shrinkage = 0.01,
bag.fraction = 1.0,
perm.test.iters=0,
print.level = 2,
iterlim = 1000,
verbose = TRUE,
estimand = "ATE",
stop.method = c("ks.mean", "es.mean"),
sampw = NULL,
multinom = FALSE, ...)
Arguments
formula
A formula for the propensity score model with the treatment
indicator on the left side of the formula and the potential
confounding variables on the right side.
data
The dataset, includes treatment assignment as well as covariates
n.trees
number of gbm iterations passed on to gbm
interaction.depth
interaction.depth
passed on to
gbm
shrinkage
shrinkage
passed on to gbm
bag.fraction
bag.fraction
passed on to gbm
perm.test.iters
a non-negative integer giving the number of iterations
of the permutation test for the KS statistic. If perm.test.iters=0
then the function returns an analytic approximation to the p-value. Setting
perm.test.i
print.level
the amount of detail to print to the screen
iterlim
maximum number of iterations for the direct optimization
verbose
if TRUE, lots of information will be printed to monitor the
the progress of the fitting
estimand
The causal effect of interest. Options are "ATE"
(average treatment effect),
which attempts to estimate the change in the outcome if the treatment were applied to the entire population
versus if the control were applied to the entire populat
stop.method
A method or methods of measuring and summarizing balance across
pretreatment variables. Current options are ks.mean
, ks.max
, es.mean
,
and es.max
. ks
refers to the
Kolmogorov-Smirnov sta
sampw
Optional sampling weights.
multinom
Set to true only when called from mnps
function.