View source: R/estimateEffect.R
austinCafri | R Documentation |
Austin and Cafri's SE estimator
austinCafri(formula, data)
formula |
A formula |
data |
A data.frame which is the result of get_mactchs() function |
Austin, Peter C., and Guy Cafri. 2020. “Variance Estimation When Using Propensity-Score Matching with Replacement with Survival or Time-to-Event Outcomes.” Statistics in Medicine 39 (11): 1623–40. https://doi.org/10.1002/sim.8502.
library(MatchIt)
library(survival)
out=matchit(A ~ X1 + X2 + X3 + X4 + X5 + X6 + X7 + X8 + X9, data = exData,
link = 'linear.logit', caliper = .1,ratio = 3, replace = TRUE)
austinCafri(Surv(Y_S) ~ A,data=get_matches(out))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.