Package: mixqr 0.2.0

Kailas Venkitasubramanian

mixqr: Extensible Finite Mixtures of Quantile and Expectile Regressions

An extensible expectation-maximization (EM) framework for finite mixtures of quantile regressions (clusterwise / mixture-of-experts quantile regression). A single EM substrate with an engine/extension contract carries a family of capabilities: the core free-weight mixture of Wu and Yao (2016) <doi:10.1016/j.csda.2014.04.014> -- a fast asymmetric-Laplace path and the nonparametric kernel-density EM with components constrained to have their tau-quantile equal to zero (Hall and Presnell 1999 device); expectile and M-quantile component-loss families (Newey and Powell 1987; Breckling and Chambers 1988); component-specific penalized variable selection (SCAD / adaptive-LASSO, the quantile analogue of Khalili and Chen 2007); and joint multi-quantile estimation with a shared latent classification and non-crossing component curves. Provides classification-aware standard errors (sparsity and stochastic-EM multiple imputation), multi-start estimation, component-count selection, and prediction. The companion package 'mixqrgate' adds location-varying gating.

Authors:Kailas Venkitasubramanian [aut, cre, cph]

mixqr_0.2.0.tar.gz
mixqr_0.2.0.tar.gz(r-4.7-any)mixqr_0.2.0.tar.gz(r-4.6-any)
mixqr_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
mixqr/json (API)

# Install 'mixqr' in R:
install.packages('mixqr', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/kvenkita/mixqr/issues

Pkgdown/docs site:https://kvenkita.github.io

Datasets:
  • engine - Engine ethanol-combustion data

On CRAN:

Conda:

3.00 score 15 exports 7 dependencies

Last updated from:d9c629744b. Checks:4 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK206
source / vignettesOK232
linux-release-x86_64OK193
wasm-releaseOK145

Exports:constrained_kdeget_mixqr_enginelist_mixqr_enginesmixqrmixqr_controlmixqr_ncmixqr_penmixqr_selectmixqr_vcontrolregister_mixqr_engineselectedVarssim_mixqr_crosssim_mixqr2sim_mixqr3weighted_rq

Dependencies:latticeMASSMatrixMatrixModelsquantregSparseMsurvival

A Tutorial on Mixtures of Quantile Regressions
1. The problem: one line, two stories | 2. Why quantiles, and why a mixture | 3. An illustrative dataset | 4. Fitting your first model | 5. Visualizing the estimates | 5.1 The two regimes | 5.2 A coefficient comparison | 6. Who is in which group? | 7. Diagnostics: can you trust it? | 7.1 The component error densities | 7.2 Two engines agree | 7.3 A caveat worth knowing | 8. Inference done right | 9. Beyond the median: the whole distribution | 10. How many groups? | 11. Reporting and reproducibility | Citation | References

Last update: 2026-06-25
Started: 2026-06-25

Get started with mixqr
A two-regime example | A first picture | Where to next | References

Last update: 2026-06-25
Started: 2026-06-25

Readme and manuals

Help Manual

Help pageTopics
Component coefficients of a mixqr fitcoef.mixqr
Confidence intervals for a mixqr fitconfint.mixqr
Engine ethanol-combustion data (Brinkman 1981)engine
Fitted values, residuals and number of observationsfitted.mixqr nobs.mixqr residuals.mixqr
Retrieve a registered mixqr engine constructorget_mixqr_engine
List registered mixqr engineslist_mixqr_engines
Log-likelihood, AIC and BIC of a mixqr fitAIC.mixqr BIC.mixqr logLik.mixqr
Fit a finite mixture of quantile regressionsmixqr
Control parameters for 'mixqr()'mixqr_control
Fit a joint multi-tau mixture of quantile regressions (non-crossing, shared labels)mixqr_nc
Fit a penalized (variable-selecting) mixture of quantile regressionsmixqr_pen
Select the number of mixture componentsmixqr_select
Control parameters for stochastic-EM variance estimation (Algorithm 3.1)mixqr_vcontrol
Plot a mixqr fitplot.mixqr
Plot the non-crossing component quantile curves of a multi-tau fitplot.mixqr_multitau
Predict from a mixqr fitpredict.mixqr
Predict non-crossing component quantiles from a multi-tau fitpredict.mixqr_multitau
Register a mixqr EM engineregister_mixqr_engine
Active (selected) covariates per component of a penalized mixqr fitselectedVars
Simulate a two-component mixture whose per-tau fits cross (for O4 validation)sim_mixqr_cross
Simulate the Wu & Yao two-component design (eq. 4.1-4.2)sim_mixqr2
Simulate the Wu & Yao three-component design (eq. 4.3-4.4)sim_mixqr3
Summarize a mixqr fitsummary.mixqr
Variance-covariance matrix of a mixqr fitvcov.mixqr