multiControlSens: Sensitivity Analysis with multiple controls

Description Usage Arguments Examples

View source: R/Rfunctions.R

Description

Sensitivity Analysis with multiple controls

Usage

1
multiControlSens(X, outcomeName, Gamma, GammaInc, n_contrl)

Arguments

X

A 'MatchIt' object

outcomeName

Name of the outcome.

Gamma

Upper bound of sensitivity parameter

GammaInc

Interval width of sequence between 1 and Gamma.

n_contrl

Number of control matched to each treated observation

Examples

1
2
3
4
data("lalonde",package ="designmatch")
covs0 <- subset(lalonde, select = -c(treat, re78, nodegree, married))
m.out <- matchit(f.build("treatment", covs0), data = lalonde, method = "nearest", replace = TRUE,ratio = 2)
multiControlSens(X =m.out,outcomeName = "re78",Gamma = 2,GammaInc = 0.1,n_contrl = 2)

Ngendahimana/sensitivityR5 documentation built on June 24, 2020, 4:09 a.m.