Learn R Programming

⚠️There's a newer version (0.4-2.26) of this package.Take me there.

mpath (version 0.4-2.25)

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

433

Version

0.4-2.25

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Zhu Wang

Last Published

March 9th, 2024

Functions in mpath (0.4-2.25)

breastfeed

Breast feeding decision
conv2zipath

convert zeroinfl object to class zipath
cv.irsvm

Cross-validation for irsvm
conv2glmreg

convert glm object to class glmreg
compute_g

Compute concave function values
docvisits

Doctor visits
breadReg

Bread for Sandwiches in Regularized Estimators
cv.glmreg

Cross-validation for glmreg
cv.irglmreg

Cross-validation for irglmreg
cv.zipath

Cross-validation for zipath
cv.irsvm_fit

Internal function of cross-validation for irsvm
cv.nclreg

Cross-validation for nclreg
gfunc

Convert response value to raw prediction in GLM
irglmreg

Fit a robust penalized generalized linear models
cv.nclreg_fit

Internal function of cross-validation for nclreg
glmreg

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

Internal function for robust penalized generalized linear models
estfunReg

Extract Empirical First Derivative of Log-likelihood Function
irsvm

fit case weighted support vector machines with robust loss functions
cv.zipath_fit

Cross-validation for zipath
irsvm_fit

Fit iteratively reweighted support vector machines for robust loss functions
hessianReg

Hessian Matrix of Regularized Estimators
loss3

Composite Loss Value for GLM
irglm

fit a robust generalized linear models
methods

Methods for mpath Objects
cv.irglmreg_fit

Internal function of cross-validation for irglmreg
ncl

fit a nonconvex loss based robust linear model
glmregNB

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

Standard Error of Regularized Estimators
mpath-internal

Internal mpath functions
update_wt

Compute weight value
meatReg

Meat Matrix Estimator
zipath

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

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

Composite Loss Value
stan

standardize variables
summary.glmregNB

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

find optimal path for penalized zero-inflated model
ncl_fit

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

Composite Loss Value for epsilon-insensitive Type
pval.zipath

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

Optimize a nonconvex loss with regularization
nclreg_fit

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

random number generation of zero-inflated count response
predict.glmreg

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

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

Methods for zipath Objects
zipath_fit

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

plot coefficients from a "glmreg" object
be.zeroinfl

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

Cross-validation for glmregNB
cv.glmreg_fit

Internal function of cross-validation for glmreg
compute_wt

Weight value from concave function