predict.FindIt | R Documentation |
predict.FindIt
takes an output from FindIt
and returns
estimated treatment effects when treat.type="single"
and predicted
outcomes for each treatment combination when treat.type="multiple"
.
## S3 method for class 'FindIt'
predict(
object,
newdata,
sort = TRUE,
decreasing = TRUE,
wts = 1,
unique = FALSE,
...
)
object |
An output object from |
newdata |
An optional data frame in which to look for variables with
which to predict. If omitted, the data used in |
sort |
Whether to sort samples according to estimated treatment effects. |
decreasing |
When |
wts |
Weights. |
unique |
If |
... |
further arguments passed to or from other methods. |
Useful for computing estimated treatment effects or predicted outcomes for
each treatment combination. By using newdata
, researchers can compute
them for any samples.
data |
A matrix of estimated treatment effects when
|
Naoki Egami, Marc Ratkovic and Kosuke Imai.
## See the help page for FindIt() for an example.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.