Description Usage Arguments Value
Estimate p-value with non-uniform probabilities of treatment with importance sampling
1 2 | importance_test(metadata, fitfunc, units, probs, trt_unit, pretimes, posttimes,
statfuncs, n_sim)
|
metadata |
with treatment time |
fitfunc |
Partially applied fitting function which takes in the number of the treated unit |
units |
Numbers of the units to permute treatment around |
probs |
Propensity scores |
trt_unit |
Treated unit |
pretimes |
Vector of times in pre-period |
posttimes |
Vector of times in post-period |
statfuncs |
Function to compute test stats |
n_sim |
Number of montecarlo samples |
att estimates, test statistics, p-values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.