View source: R/generateMatchPair.R
gammaRangeSearch | R Documentation |
Find significant gamma range
gammaRangeSearch(out, dep = "y", start = 1, threshold = 0.025, method = "w")
out |
An object of class matchit |
dep |
Character Name of dependent variable |
start |
numeric start gamma value |
threshold |
numeric p value threshold |
method |
method to be passed to senmw() |
library(MatchIt)
out=matchit(formula=treat~V1+V2+V3,data=simData,link="linear.logit",caliper=0.15,ratio=2)
tail(gammaRangeSearch(out,dep="y"))
out=matchit(formula=treat~V1+V2+V3,data=simData,link="linear.logit",ratio=2,method="optimal")
tail(gammaRangeSearch(out,dep="y"))
out=matchit(treat~age+educ+race+married+nodegree+re74+re75,data=lalonde)
tail(gammaRangeSearch(out,dep="re78"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.