Learn R Programming

ncpen

ncpen package fits the generalized linear models with various nonconvex penalties. Supported regression models are Gaussian (linear), binomial Logit (logistic), multinomial Logit, Poisson and Cox proportional hazard. A unified algorithm is implemented based on the convex concave procedure and the algorithm can be applied to most of the existing nonconvex penalties. The algorithm also supports convex penalty: least absolute shrinkage and selection operator (LASSO). Supported nonconvex penalties include smoothly clipped absolute deviation (SCAD), minimax concave penalty (MCP), truncated LASSO penalty (TLP), clipped LASSO (CLASSO), sparse ridge (SRIDGE), modified bridge (MBRIDGE) and modified log (MLOG). This package accepts a design matrix X and vector of responses y, and produces the regularization path over a grid of values for the tuning parameter lambda. Also provides user-friendly processes for plotting, selecting tuning parameters using cross-validation or generalized information criterion (GIC), l2-regularization, penalty weights, standardization and intercept. For a data set with many variables (high-dimensional data), the algorithm selects relevant variables producing a parsimonious regression model.

Related research paper can be found at ncpen paper. A recent manual is avaialbe at ncpen manual and for an example use, see ncepn example.

(This research is funded by Julian Virtue Professorship from Center for Applied Research at Pepperdine Graziadio Business School and the National Research Foundation of Korea.)

Authors

Dongshin Kim, Sunghoon Kwon, Sangin Lee

References

Copy Link

Version

Install

install.packages('ncpen')

Monthly Downloads

162

Version

1.0.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Dongshin Kim

Last Published

November 17th, 2018

Functions in ncpen (1.0.0)

cv.ncpen

cv.ncpen: cross validation for ncpen
excluded

Check whether a pair should be excluded from interactions.
coef.cv.ncpen

coef.cv.ncpen: extracts the optimal coefficients from cv.ncpen.
coef.ncpen

coef.ncpen: extract the coefficients from an ncpen object
native_cpp_ncpen_fun_

Native ncpen function.
native_cpp_obj_fun_

Native object function.
interact.data

Construct Interaction Matrix
native_cpp_obj_grad_fun_

Native object gradient function.
native_cpp_obj_hess_fun_

Native object Hessian function.
fold.cv.ncpen

fold.cv.ncpen: extracts fold ids for cv.ncpen.
gic.ncpen

gic.ncpen: compute the generalized information criterion (GIC) for the selection of lambda
native_cpp_nr_fun_

N/A.
native_cpp_pen_fun_

Native Penalty function.
make.ncpen.data

Create ncpen Data Structure Using a Formula
native_cpp_qlasso_fun_

Native QLASSO function.
ncpen.reg

ncpen.reg: nonconvex penalized estimation
native_cpp_p_ncpen_fun_

Native point ncpen function.
native_cpp_pen_grad_fun_

Native Penalty Gradient function.
plot.ncpen

plot.ncpen: plots coefficients from an ncpen object.
same.base

Check whether column names are derivation of a same base.
power.data

Power Data
native_cpp_set_dev_mode_

N/A.
predict.ncpen

predict.ncpen: make predictions from an ncpen object
ncpen-package

ncpen: A package for non-convex penalized estimation for generalized linear models
to.indicators

Construct Indicator Matrix
ncpen

ncpen: nonconvex penalized estimation
sam.gen.ncpen

sam.gen.ncpen: generate a simulated dataset.
to.ncpen.x.mat

Convert a data.frame to a ncpen usable matrix.
plot.cv.ncpen

plot.cv.ncpen: plot cross-validation error curve.
cv.ncpen.reg

cv.ncpen: cross validation for ncpen
control.ncpen

control.ncpen: do preliminary works for ncpen.