View source: R/estimateEffect2.R
| estimateEffect2 | R Documentation | 
Estimate Effect after matching using the bootstrap
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
)
| 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 | 
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.