View source: R/EstimateEffectZelig.R
| estimateEffectZelig | R Documentation | 
Estimate Effect after matching with simulation
estimateEffectZelig(
  out,
  mode = "continuous",
  multiple = TRUE,
  dep,
  seed = 1234,
  n_sim = 10000,
  reverse = FALSE
)
out | 
 An object of class "matchit"  | 
mode | 
 One of c("continuous","binary","survival")  | 
multiple | 
 logical Whether or not perform multiple regression  | 
dep | 
 Name of dependent variable  | 
seed | 
 numeric seed number  | 
n_sim | 
 numeric number of simuations  | 
reverse | 
 logical  | 
library(MatchIt)
out=matchit(formula=treat~V1+V2+V3,data=simData,link="linear.logit",
caliper=0.15,ratio=2)
estimateEffectZelig(out,dep="y")
## Not run: 
out1=matchit(formula=treat~V1+V2+V3,data=simData,link="linear.logit",estimand="ATC",
caliper=0.15,ratio=2)
estimateEffectZelig(out1,dep="y")
out2=matchit(formula=Rtreat~V1+V2+V3,data=simData,link="linear.logit",
caliper=0.15,ratio=2,replace=TRUE)
estimateEffectZelig(out2,dep="y",reverse=TRUE)
fullATT=matchit(formula=treat~V1+V2+V3,data=simData,
link="linear.logit",method="full")
estimateEffectZelig(fullATT,dep="y")
fullATC=matchit(formula=treat~V1+V2+V3,data=simData,link="linear.logit",
method="full",estimand="ATC")
estimateEffectZelig(fullATC,dep="y")
fullATC2=matchit(formula=Rtreat~V1+V2+V3,data=simData,link="linear.logit",
method="full")
estimateEffectZelig(fullATC2,dep="y",reverse=TRUE)
fullATE=matchit(formula=treat~V1+V2+V3,data=simData,link="linear.logit",
method="full",estimand="ATE")
estimateEffectZelig(fullATE,dep="y")
optimalATT=matchit(formula=treat~V1+V2+V3,data=simData,link="linear.logit",
method="optimal",estimand="ATT",ratio=2)
estimateEffectZelig(optimalATT,dep="y")
geneticATT=matchit(formula=treat~V1+V2+V3,data=simData,link="linear.logit",
method="genetic",estimand="ATT",ratio=2,pop.size=1000)
estimateEffectZelig(geneticATT,dep="y")
geneticATC=matchit(formula=treat~V1+V2+V3,data=simData,link="linear.logit",
method="genetic",estimand="ATC",ratio=2,pop.size=1000)
estimateEffectZelig(geneticATC,dep="y",reverse=TRUE)
mahalaATT=matchit(formula=treat~V1+V2+V3,data=simData,distance="glm",
method="nearest",estimand="ATT",caliper=0.15,ratio=2,mahvars=~V1+V2+V3)
estimateEffectZelig(mahalaATT,dep="y")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.