Description Usage Arguments Details Value Examples
A wrapper around CEM to match on refit topics and projection.
1 2 3 4 5 6 7 8 9 |
theta |
an output of |
projection |
an output of |
treat |
the treatment variable. |
topic_breaks |
the cutpoints used for the topics. If this is a vector it defines the
vector of cutpoints. If this is a single number, it determines the number of bins. By default
it uses the cutpoints |
projection_breaks |
the cutpoints used for the projection. If this is a vector it defines the vector of cutpoints. If this is a single number, it determines the number of bins. By default it uses 5 inductively learned bins. See cem for more details. |
returnX |
a logical which if true adds a copy of the data to the return object as a top level
item in the list called |
... |
additional arguments passed to cem |
This function is a convenience wrapper around CEM which returns a cem object.
a cem.match
object
1 2 3 4 5 6 | #See ?sim for a walkthrough
data(sim)
refitted <- refit(sim_topics, sim_documents, content_level="1")
projection <- project(sim_topics, sim_documents)
matched <- cem_match(refitted,projection=projection, sim_meta$treat,
projection_breaks=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.