GithubHelp home page GithubHelp logo

zeemkr / ncpen Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 0.0 2.57 MB

Nonconvex Penalized Estimation for Generalized Linear Models

R 48.93% C++ 49.96% C 1.11%
nonconvex-penalties lasso scad mcp tlp classo sridge mbridge high-dimensional-data mlog

ncpen's Introduction

Travis-CI Build Status

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 algorithm 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

ncpen's People

Contributors

zeemkr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ncpen's Issues

Lambda automatically changed.

Hello, how are you?

I was trying to use your code

MCP <- cv.ncpen(y.vec = Y, x.mat = as.matrix(X), family = "gaussian", penalty = "mcp", intercept = FALSE, lambda = 0.00001)
SCAD <- cv.ncpen(y.vec = Y, x.mat = as.matrix(X), family = "gaussian", penalty = "scad", intercept = FALSE, lambda = 0.00001)

But the following warning message pops up,
################
Warning message:
In control.ncpen(y.vec, x.mat, family, penalty, x.standardize, intercept, :
lambda is extended up to 0.397361543702241
################

And I could not get the desirable result. Also I could not find out what the problem is. Will you be able to look it up?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.