estimateEffect2: Estimate Effect after matching using the bootstrap

View source: R/estimateEffect2.R

estimateEffect2R Documentation

Estimate Effect after matching using the bootstrap

Description

Estimate Effect after matching using the bootstrap

Usage

estimateEffect2(
  out,
  mode = "continuous",
  multiple = TRUE,
  dep,
  time = "",
  status = "",
  covarCentering = FALSE,
  withinSubclass = FALSE,
  seed = 1,
  digits = 2,
  sedigits = 2,
  pdigits = 4,
  se = TRUE,
  print = TRUE
)

Arguments

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

time

Name of time variable

status

Name of status variable

covarCentering

logical

withinSubclass

logical

seed

numeric

digits

integer indicating the number of decimal places

sedigits

digits for standard error

pdigits

digits for p value

se

logical If true, report se. If false report confidence interval

print

logical

Examples

library(MatchIt)
library(survival)
out <- matchit(A ~ X1 + X2 + X3 + X4 + X5 + X6 + X7 + X8 + X9, data = exData)
## Not run: 
estimateEffect2(out,dep="Y_C",multiple=FALSE)
estimateEffect2(out,mode="binary",dep="Y_B",multiple=FALSE)
estimateEffect2(out,mode="binary",dep="Y_B")
estimateEffect2(out,mode="survival",dep="Y_S",multiple=FALSE)
out <- matchit(A ~ X1 + X2 + X3 + X4 + X5 + X6 + X7 + X8 + X9, data = exData,
            link = 'linear.logit', caliper = .1, ratio = 3, replace = TRUE)
estimateEffect2(out,dep="Y_C",multiple=FALSE)
estimateEffect2(out,dep="Y_B",mode="binary",multiple=TRUE)
estimateEffect2(out,dep="Y_S",mode="survival",multiple=TRUE)

## End(Not run)

cardiomoon/webrPSM documentation built on Feb. 2, 2024, 3:55 a.m.