Description Usage Arguments Details References Examples
View source: R/plotEstimates.R
plotEstimates()
plots estimates along the frontier.
1 2 3 4 5 6 7 8 9 10 | plotEstimates(estimates.object,
xlab = 'Number of Observations Pruned',
ylab = 'Estimate',
main = 'Effects Plot',
xlim = NULL,
ylim = NULL,
mod.dependence.col = rgb(255,0,0,127, maxColorValue=255),
mod.dependence.border.col = rgb(255,0,0,200, maxColorValue=255),
line.col = rgb(102,0,0,255, maxColorValue=255),
...)
|
estimates.object |
An object generated by |
xlab |
The label for the x-axis. Defaults to 'Number of Observations Pruned'. |
ylab |
The label for the y-axis. Defaults to 'Estimate'. |
main |
The main label. Defaults to 'Effects Plot'. |
xlim |
The x-axis limits. |
ylim |
The y-axis limits. |
... |
Additional arguments to be passed to |
mod.dependence.col |
The color to shade the model dependence region. |
mod.dependence.border.col |
The model dependence region border color. |
line.col |
The color of the line displaying point estimates. |
plotEstimates()
wraps plot
and uses ... to
pass additional arguments to the base plot()
function,
like color, axis range, etc.
King, Gary, Christopher Lucas, and Richard Nielsen. "The Balance-Sample Size Frontier in Matching Methods for Causal Inference." (2015).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | data(lalonde)
match.on <- colnames(lalonde)[!(colnames(lalonde) %in% c('re78', 'treat'))]
my.frontier <- makeFrontier(dataset = lalonde,
treatment = 'treat',
outcome = 're78',
match.on = match.on)
base.form <- as.formula('re78 ~ treat + age + education
+ black + hispanic + married +
nodegree + re74 + re75')
## Not run:
my.estimates <- estimateEffects(my.frontier,
're78 ~ treat',
mod.dependence.formula = base.form,
continuous.vars = c('age', 'education', 're74', 're75'),
prop.estimated = .1,
means.as.cutpoints = TRUE)
plotEstimates(my.estimates)
## End(Not run)
|
Loading MatchingFrontier Version 1.0.0
## Citation ##
King, Gary, Christopher Lucas, and Richard Nielsen. "MatchingFrontier:
Automated Matching for Causal Inference." R package version 1.0.0.
## BibTeX ##
@manual{MatchingFrontier,
title={MatchingFrontier: Automated Matching for Causal Inference},
author={King, Gary and Lucas, Christopher and Nielsen, Richard},
year={2014},
note={R package version 1.0.0}
}
Calculating Mahalanobis distances...
Calculating theoretical frontier...
Calculating information for plotting the frontier...
$age
[1] 30
$education
[1] 12
$re74
[1] 11703.2
$re75
[1] 11082.1
|
| | 0%
|
|= | 1%
|
|= | 2%
|
|== | 3%
|
|=== | 4%
|
|==== | 5%
|
|==== | 6%
|
|===== | 7%
|
|====== | 8%
|
|====== | 9%
|
|======= | 10%
|
|======== | 11%
|
|======== | 12%
|
|========= | 13%
|
|========== | 14%
|
|=========== | 15%
|
|=========== | 16%
|
|============ | 17%
|
|============= | 18%
|
|============= | 19%
|
|============== | 20%
|
|=============== | 21%
|
|================ | 22%
|
|================ | 23%
|
|================= | 24%
|
|================== | 25%
|
|================== | 26%
|
|=================== | 27%
|
|==================== | 28%
|
|===================== | 29%
|
|===================== | 30%
|
|====================== | 31%
|
|======================= | 32%
|
|======================= | 33%
|
|======================== | 34%
|
|========================= | 35%
|
|========================= | 36%
|
|========================== | 37%
|
|=========================== | 38%
|
|============================ | 39%
|
|============================ | 40%
|
|============================= | 41%
|
|============================== | 42%
|
|============================== | 43%
|
|=============================== | 44%
|
|================================ | 45%
|
|================================= | 46%
|
|================================= | 47%
|
|================================== | 48%
|
|=================================== | 49%
|
|=================================== | 51%
|
|==================================== | 52%
|
|===================================== | 53%
|
|===================================== | 54%
|
|====================================== | 55%
|
|======================================= | 56%
|
|======================================== | 57%
|
|======================================== | 58%
|
|========================================= | 59%
|
|========================================== | 60%
|
|========================================== | 61%
|
|=========================================== | 62%
|
|============================================ | 63%
|
|============================================= | 64%
|
|============================================= | 65%
|
|============================================== | 66%
|
|=============================================== | 67%
|
|=============================================== | 68%
|
|================================================ | 69%
|
|================================================= | 70%
|
|================================================= | 71%
|
|================================================== | 72%
|
|=================================================== | 73%
|
|==================================================== | 74%
|
|==================================================== | 75%
|
|===================================================== | 76%
|
|====================================================== | 77%
|
|====================================================== | 78%
|
|======================================================= | 79%
|
|======================================================== | 80%
|
|========================================================= | 81%
|
|========================================================= | 82%
|
|========================================================== | 83%
|
|=========================================================== | 84%
|
|=========================================================== | 85%
|
|============================================================ | 86%
|
|============================================================= | 87%
|
|============================================================== | 88%
|
|============================================================== | 89%
|
|=============================================================== | 90%
|
|================================================================ | 91%
|
|================================================================ | 92%
|
|================================================================= | 93%
|
|================================================================== | 94%
|
|================================================================== | 95%
|
|=================================================================== | 96%
|
|==================================================================== | 97%
|
|===================================================================== | 98%
|
|===================================================================== | 99%
|
|======================================================================| 100%
Warning message:
In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.