Learn R Programming

DEmixR (version 0.1.1)

Fit Two-Component Normal and Lognormal Mixture Models

Description

Fits, bootstraps, and evaluates two-component normal and lognormal mixture models. Includes diagnostic plots and statistical evaluation of mixture model fits using differential evolution optimization.

Copy Link

Version

Install

install.packages('DEmixR')

Monthly Downloads

109

Version

0.1.1

License

MIT + file LICENSE

Maintainer

Farrokh Habibzadeh

Last Published

September 27th, 2025

Functions in DEmixR (0.1.1)

default_bounds_lognorm2

Default bounds for lognormal mixture
fit_lognorm2

Fit 2-component lognormal mixture
bootstrap_mix2

Bootstrap mixture parameters
fit_norm2

Fit 2-component normal mixture
evaluate_init

Evaluate initial parameter values for mixture fitting
select_best_mixture

Select best mixture model (lognormal or normal) based on BIC
prelim_plots

Preliminary diagnostic plots
order_components

Reorder mixture components to prevent label switching
.fit_mix2_core

Internal function for multiple DEoptim runs
default_bounds_norm2

Default bounds for normal mixture
loglik_lognorm

Log-likelihood for 2-component lognormal mixture
loglik_norm

Log-likelihood for 2-component normal mixture
.run_demulti

Internal function for multiple DEoptim runs