
Quantile Regression Combined-Likelihood Compound Estimator for KK Designs (Proportion)
Source:R/inference_proportion_KK_quantile_regr_one_lik.R
InferencePropKKQuantileRegrOneLik.RdFits the combined stacked quantile regression (matched-pair differences + reservoir)
using the treatment indicator and all recorded covariates for proportion responses.
Responses \(y \in (0,1)\) are transformed via
\(\mathrm{logit}(y) = \log(y/(1-y))\) before regression; the estimated
treatment effect \(\hat\beta_T\) is a log-odds-ratio shift at quantile
tau of the logit-transformed response. Minimizes the joint
check-function (pinball) loss \(\rho_\tau(u) = u(\tau - \mathbb{1}\{u<0\})\)
over both data sources simultaneously in one quantreg fit, unlike the
IVWC sibling, which fits
matched-pair and reservoir quantile regressions separately and pools them by
inverse-variance weighting. Standard errors use Powell's sandwich estimator.
likelihood_tier = "none": quantile regression minimizes an
asymmetric-loss objective, not a proper likelihood, so no likelihood-ratio or
parametric-bootstrap methods are exposed. Requires the quantreg
package.
Small-sample behaviour
How fast the size (and coverage) error of each procedure is expected to vanish as the
effective sample size \(n_{eff}\) grows, from EDI's convergence-rate registry
(inference_convergence_expectation()). Exact procedures are valid at every
n by construction; the others are asymptotic, so a small-sample excess is expected, and
its constant is not given by an order. The table is the expectation for a balanced
complete-randomization design; it is not a measured size. Reference keys are explained
under References.
| Procedure | Regime | Error order | Effective n | Regularity | Basis | References |
rand | finite sample | exact | pairs + reservoir | regular | theory | [Fisher1935], [LehmannRomano2005] |
wald | asymptotic | \(O(n_{eff}^{-2/3})\) | pairs + reservoir | nonparametric rate | literature | [HallSheather1988], [Koenker1994], [Koenker2005] |
jackknife | asymptotic | \(O(n_{eff}^{-1})\) | pairs + reservoir | regular | assumed default | [ShaoTu1995] |
bootstrap | asymptotic | \(O(n_{eff}^{-1})\) | pairs + reservoir | regular | assumed default | [Hall1992] |
bayes_boot | asymptotic | \(O(n_{eff}^{-1})\) | pairs + reservoir | regular | assumed default | [Rubin1981], [Lo1987] |
rand_bootstrap | asymptotic | \(O(n_{eff}^{-1})\) | pairs + reservoir | regular | assumed default | [Hall1992], [Kallus2018] |
The point estimate's bias is of order \(O(n_{eff}^{-1})\) (assumed default: [CoxSnell1968]).
Rows with basis assumed default: the order shown is the procedure's rate in a regular parametric model, and the cited works establish it for that case only. EDI has not derived it for this class.
Regularity nonparametric rate: the standard error needs a nonparametric (kernel sparsity) estimate, so the rate is slower than the parametric one.
References
Koenker, R. (2005). Quantile Regression. Cambridge University Press. doi:10.1017/CBO9780511754098
[Fisher1935] Fisher, R. A. (1935). The Design of Experiments. Oliver and Boyd.
[LehmannRomano2005] Lehmann, E. L., and Romano, J. P. (2005). Testing Statistical Hypotheses (3rd ed.). Springer.
[HallSheather1988] Hall, P., and Sheather, S. J. (1988). "On the Distribution of a Studentized Quantile." Journal of the Royal Statistical Society: Series B, 50(3), 381-391.
[Koenker1994] Koenker, R. (1994). "Confidence Intervals for Regression Quantiles." In P. Mandl and M. Huskova (eds.), Asymptotic Statistics: Proceedings of the Fifth Prague Symposium on Asymptotic Statistics, 349-359. Physica-Verlag.
[Koenker2005] Koenker, R. (2005). Quantile Regression. Cambridge University Press.
[ShaoTu1995] Shao, J., and Tu, D. (1995). The Jackknife and Bootstrap. Springer.
[Hall1992] Hall, P. (1992). The Bootstrap and Edgeworth Expansion. Springer.
[Rubin1981] Rubin, D. B. (1981). "The Bayesian Bootstrap." The Annals of Statistics, 9(1), 130-134.
[Lo1987] Lo, A. Y. (1987). "A Large Sample Study of the Bayesian Bootstrap." The Annals of Statistics, 15(1), 360-375.
[Kallus2018] Kallus, N. (2018). "Optimal a priori balance in the design of controlled experiments." Journal of the Royal Statistical Society: Series B, 80(1), 85-112. Section 5 ("Algorithms for inference"), Algorithm 4.
[CoxSnell1968] Cox, D. R., and Snell, E. J. (1968). "A General Definition of Residuals." Journal of the Royal Statistical Society: Series B, 30(2), 248-265 (discussion 265-275).
Super class
Inference -> InferencePropKKQuantileRegrOneLik
Methods
+ inherited public methods from Inference
Inference$capabilities()Inference$clear_randomization_cache()Inference$compute_asymp_confidence_interval()Inference$compute_asymp_two_sided_pval()Inference$compute_estimate()Inference$compute_exact_confidence_interval()Inference$compute_exact_two_sided_pval_for_treatment_effect()Inference$duplicate()Inference$get_analysis_data()Inference$get_covariates()Inference$get_design_object()Inference$get_estimand()Inference$get_model_formula()Inference$get_nonestimable_reason()Inference$get_nonestimable_stage()Inference$get_optimization_alg()Inference$get_procedure_validity()Inference$get_response()Inference$get_response_type()Inference$get_summary()Inference$get_supported_estimands()Inference$get_treatment()Inference$is_nonestimable()Inference$set_estimand()Inference$set_optimization_alg()Inference$set_seed()Inference$supports()
InferencePropKKQuantileRegrOneLik$new()
Initialize proportion-response KK combined-likelihood quantile-regression inference.
Responses are fitted on the logit scale; the shared stacked quantile-regression
fit is documented in
InferenceContinKKQuantileRegrOneLik
(this class's continuous-response sibling, sharing the same
KKQuantileRegrOneLik component).
Usage
InferencePropKKQuantileRegrOneLik$new(
des_obj,
model_formula = NULL,
tau = 0.5,
verbose = FALSE
)Arguments
des_objA DesignSeqOneByOne object whose entire n subjects are assigned and response y is recorded within.
model_formulaOptional formula for covariate adjustment. If
NULL(default), the formula from the design object is used and its pre-computed design matrix is reused. If a formula is provided, a new design matrix is constructed from the design's imputed covariates.tauThe quantile level on the logit scale, strictly between 0 and 1. Default is 0.5.
verboseWhether to print progress messages.
Examples
if (requireNamespace("quantreg", quietly = TRUE)) {
# \donttest{
seq_des = DesignSeqOneByOneKK14$new(n = 10, response_type = 'proportion')
for (i in 1:10) {
seq_des$add_one_subject_to_experiment_and_assign(data.frame(x1 = rnorm(1), x2 = rnorm(1)))
}
seq_des$add_all_subject_responses(runif(10))
inf = InferencePropKKQuantileRegrOneLik$new(seq_des)
inf$compute_estimate()
# }
}
#> [1] -1.993696