mlmodels: Maximum Likelihood Models for R

R-CMD-check

mlmodels provides a consistent and flexible framework for maximum likelihood estimation in R. It includes a wide range of models with a unified S3 interface, support for modeling scale parameters (heteroskedasticity), rich post-estimation tools, and excellent compatibility with the marginaleffects package.

Key Features

Installation

You can install the development version from GitHub:

# install.packages("devtools")
devtools::install_github("alfisankipan/mlmodels")

(The package will soon be available on CRAN.)

Documentation

Quick Example

library(mlmodels)

data("mroz")

fit <- ml_logit(inlf ~ age + I(age^2) + huswage + educ + unem, 
                data = mroz)

summary(fit, vcov.type = "robust")

Acknowledgements

This package builds on the excellent maxLik package by Arne Henningsen and others for the underlying optimization engine.