Learn R Programming

cem (version 1.0.142)

cemspace: Exploration tool for CEM

Description

Exploration tool for CEM

Usage

cemspace(treatment=NULL, data = NULL, R=100, grouping = NULL, drop=NULL,
L1.breaks = NULL, plot = TRUE, fixed = NULL, minimal = 1, maximal = 5,
M=250, raw.profile=NULL)

Arguments

treatment
character, name of the treatment variable.
data
a data.frame.
R
number of possible random coarsening for the CEM.
grouping
named list, each element of which is a list of groupings for a single categorical variable. For more details see cem.
drop
a vector of variable names in the data frame to ignore during matching
L1.breaks
list of cutpoints for the calculation of the L1 measure.
plot
plot the space of solutions?
fixed
vector of variable names which will not be relaxed.
minimal
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.
maximal
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.
M
number of possible random coarsening for the L1 measure
raw.profile
and object of class L1profile. If passed, the L1.breaks are ignored.

Value

  • valan invisible object of class imbalance.space.

Details

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.

References

Stefano Iacus, Gary King, Giuseppe Porro, ``Matching for Casual Inference Without Balance Checking: Coarsened Exact Matching,'' http://gking.harvard.edu/files/abs/cem-abs.shtml

See Also

imbspace.plot, cemspace

Examples

Run this code
data(LL)
tmp <- cemspace("treated", LL, drop="re78", M=50)

Run the code above in your browser using DataLab