Learn R Programming

mpath (version 0.4-2.27)

Regularized Linear Models

Description

Algorithms compute robust estimators for loss functions in the concave convex (CC) family by the iteratively reweighted convex optimization (IRCO), an extension of the iteratively reweighted least squares (IRLS). The IRCO reduces the weight of the observation that leads to a large loss; it also provides weights to help identify outliers. Applications include robust (penalized) generalized linear models and robust support vector machines. The package also contains penalized Poisson, negative binomial, zero-inflated Poisson, zero-inflated negative binomial regression models and robust models with non-convex loss functions. Wang et al. (2014) , Wang et al. (2015) , Wang et al. (2016) , Wang (2021) , Wang (2024) .

Copy Link

Version

Install

install.packages('mpath')

Monthly Downloads

704

Version

0.4-2.27

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Zhu Wang

Last Published

July 12th, 2026

Functions in mpath (0.4-2.27)

cv.irsvm

Cross-validation for irsvm
estfunReg

Extract Empirical First Derivative of Log-likelihood Function
cv.nclreg_fit

Internal function of cross-validation for nclreg
docvisits

Doctor visits
cv.zipath

Cross-validation for zipath
cv.irglmreg_fit

Internal function of cross-validation for irglmreg
cv.irglmreg

Cross-validation for irglmreg
cv.nclreg

Cross-validation for nclreg
cv.irsvm_fit

Internal function of cross-validation for irsvm
cv.zipath_fit

Cross-validation for zipath
glmreg

fit a GLM with lasso (or elastic net), snet or mnet regularization
hessianReg

Hessian Matrix of Regularized Estimators
irsvm

fit case weighted support vector machines with robust loss functions
glmregNB

fit a negative binomial model with lasso (or elastic net), snet and mnet regularization
gfunc

Convert response value to raw prediction in GLM
glmreg_fit

Internal function to fit a GLM with lasso (or elastic net), snet and mnet regularization
irsvm_fit

Fit iteratively reweighted support vector machines for robust loss functions
irglmreg_fit

Internal function for robust penalized generalized linear models
irglmreg

Fit a robust penalized generalized linear models
irglm

fit a robust generalized linear models
mpath-internal

Internal mpath functions
loss3

Composite Loss Value for GLM
methods

Methods for mpath Objects
meatReg

Meat Matrix Estimator
ncl_fit

Internal function to fit a nonconvex loss based robust linear model
ncl

fit a nonconvex loss based robust linear model
loss2_irsvm

Composite Loss Value for epsilon-insensitive Type
nclreg_fit

Internal function to fitting a nonconvex loss based robust linear model with regularization
loss2

Composite Loss Value
nclreg

Optimize a nonconvex loss with regularization
summary.glmregNB

Summary Method Function for Objects of Class 'glmregNB'
predict.zipath

Methods for zipath Objects
predict.glmreg

Model predictions based on a fitted "glmreg" object.
sandwichReg

Making Sandwiches with Bread and Meat for Regularized Estimators
tuning.zipath

find optimal path for penalized zero-inflated model
stan

standardize variables
plot.glmreg

plot coefficients from a "glmreg" object
pval.zipath

compute p-values from penalized zero-inflated model with multi-split data
se

Standard Error of Regularized Estimators
rzi

random number generation of zero-inflated count response
zipath

Fit zero-inflated count data linear model with lasso (or elastic net), snet or mnet regularization
zipath_fit

Internal function to fit zero-inflated count data linear model with lasso (or elastic net), snet or mnet regularization
update_wt

Compute weight value
compute_wt

Weight value from concave function
conv2zipath

convert zeroinfl object to class zipath
conv2glmreg

convert glm object to class glmreg
compute_g

Compute concave function values
breastfeed

Breast feeding decision
breadReg

Bread for Sandwiches in Regularized Estimators
cv.glmregNB

Cross-validation for glmregNB
be.zeroinfl

conduct backward stepwise variable elimination for zero inflated count regression
cv.glmreg

Cross-validation for glmreg
cv.glmreg_fit

Internal function of cross-validation for glmreg