Description Usage Arguments References Examples
View source: R/modelDependence.R
modelDependence()
is used to compute the Athey-Imbens
measure of sensitivity to model specification.
1 2 | modelDependence(dataset, treatment, base.form, verbose = TRUE,
seed = 1, cutpoints = NA, median = TRUE)
|
dataset |
A data frame containing the variables in the model. |
treatment |
The treatment (quantity of interest). The measure of model dependence is with respect to estimates of this quantity. Must be in base.form. |
base.form |
The base formula that is to be evaluated. |
verbose |
If TRUE, additional information is printed. |
seed |
Seed for the random number generator. |
cutpoints |
A list where the keys are variables names and the values are cutpoints. If specified, cutpoints for these variables will not be estimated. Otherwise, cutpoints are estimated with segmented regression. |
median |
If TRUE, the cutpoint is set at the median. If false, the cutpoint is estimated with segmeted (piecewise) regression. |
Athey, Susan, and Guido W. Imbens. "A Measure of Robustness to Misspecification." (2014).
1 2 3 4 5 6 7 8 9 10 | data(lalonde)
treatment <- 'treat'
base.form <- as.formula('re78 ~ treat + age + education
+ black + hispanic + married +
nodegree + re74 + re75')
md <- modelDependence(lalonde, treatment, base.form,
cutpoints = list('age' = mean(lalonde$age)))
print(md)
|
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}
}
Estimate from base model: -5805.93
Estimate from age partition: -6485.76
Estimate from education partition: -6063.62
[1] 514.0836
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.