coneproj: An R Package for the Primal or Dual Cone Projections with Routines for Constrained Regression

View Researcher's Other Codes

Disclaimer: The provided code links for this paper are external links. Science Nest has no responsibility for the accuracy, legality or content of these links. Also, by downloading this code(s), you agree to comply with the terms of use as set out by the author(s) of the code(s).

Authors Xiyue Liao, Mary C. Meyer
Journal/Conference Name Journal of Statistical Software
Paper Category
Paper Abstract The coneproj package contains routines for cone projection and quadratic programming, plus applications in estimation and inference for constrained parametric regression and shape-restricted regression problems. A short routine check_irred is included to check the irreducibility of a matrix, whose rows are supposed to be a set of cone edges used by coneA or coneB. For the coneA and coneB functions, the vector to project is provided by the user, along with the cone specification and a weight vector. For coneA, a constraint matrix is specified to define the cone, and for coneB, the cone edges are provided. The coneA and coneB algorithms have been coded and compiled in C++, and are called by R. The qprog function transforms a quadratic programming problem into a cone projection problem and calls coneA. The constreg function does estimation and inference for parametric least-squares regression with constraints on the parameters (using coneA). A p value for the “one-sided” test is provided. The shapereg function uses coneB to provide a least-squares estimator for a regression function with several choices of constraints including isotonic and convex regression functions, as well as estimates of parametrically modeled covariate effects. Results from hypothesis tests for significance of the effects are also provided. This package is now available from the Comprehensive R Archive Network at
Date of publication 2014
Code Programming Language R

Copyright Researcher 2022