You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an R package for conducting randomization inference for quantiles of individual treatment effects
Installation
devtools::install_github("li-xinran/RIQITE")
load the package
library(RIQITE)
explanation for the main functions
?pval_bound# get the p value for testing bounded null
?ci_bound# get the confidence interval for the maximum (or minimum) individual effect
?pval_quantile# get the p value for testing null hypotheses on quantiles of individual effects
?ci_quantile# get the confidence interval for quantiles of individual effects
?calc_power# conduct simulation to compare tests using different Stephenson rank sum statistics
?summary_power_results# summarize the simulation to compare performance of different Stephenson rank sum statistics
construct simultaneous confidence intervals for all quantiles of individual effects
ci= ci_quantile( Z=Z, Y=Y, alternative="two.sided", method.list=method.list, nperm=10^4, alpha=0.05 )
ci#> CI quantile on 200 units with 100 treated:#> Method: Stephenson-10#> Alternative: two.sided with alpha=0.05#> Quantiles covered from 1 to 200 (200 quantiles)#> 10000 permutations with tolerance of 0.001
visualize the simultaneous confidence intervals for all quantiles of individual effects