Exploration tool for CEM
cemspace(treatment=NULL, data = NULL, R=100, grouping = NULL, drop=NULL,
L1.breaks = NULL, L1.grouping=NULL, plot = TRUE, fixed = NULL,
minimal = 1, maximal = 5, M=250, raw.profile=NULL, keep.weights=FALSE,
verbose=1)
an invisible object of class imbalance.space
.
character, name of the treatment variable.
a data.frame.
integer, controls output.
number of possible random coarsening for the CEM.
named list, each element of which is a list of
groupings for a single categorical variable. For more details see cem
.
a vector of variable names in the data frame to ignore during matching
list of cutpoints for the calculation of the L1 measure.
as grouping
but only needed in the calculation
of the L1 measure not in matching.
plot the space of solutions?
vector of variable names which will not be relaxed.
the minimal number of intervals acceptable after relaxation. Should be a nameed list of positive integers or if a number, this is applied to all variables.
the maximal number of intervals acceptable after relaxation. Should be a nameed list of positive integers or if a number, this is applied to all variables.
number of possible random coarsening for the L1 measure
an object of class L1profile
. If passed, the L1.breaks
are
ignored and set to median cutpoints of L1 profile.
if TRUE
, for each matching solutions the CEM-weights are stored.
Stefano Iacus, Gary King, and Giuseppe Porro
This is a tool to help the user to explore different cem solutions by choosing
random coarsenings. The algorithm tries R
random choiches
of coarsenings into
intervals between minimal
and maximal
for numerical, integer or
ordered factors. It drops or include dichotomous or boolean variables.
Calling directly plot
on the output of cemspace
has the same
effect of calling directly imbspace.plot
.
If you want to relax a given cem solution, use the function
imbspace
instead.
Iacus, King, Porro (2011) tools:::Rd_expr_doi("10.1198/jasa.2011.tm09599")
Iacus, King, Porro (2012) tools:::Rd_expr_doi("10.1093/pan/mpr013")
Iacus, King, Porro (2019) tools:::Rd_expr_doi("10.1017/pan.2018.29")
imbspace.plot
, cemspace
# \donttest{
data(LL)
set.seed(123)
tmp <- cemspace("treated", LL, drop="re78", M=50)
# }
Run the code above in your browser using DataLab