Skip to content

cols

Constrained Ordinary Least Squares

v1.7 · Apr 15, 2026 · GPL (>= 2)

Description

Constrained ordinary least squares is performed. One constraint is that all beta coefficients (including the constant) cannot be negative. They can be either 0 or strictly positive. Another constraint is that the sum of the beta coefficients equals a constant. References: Hansen, B. E. (2022). Econometrics, Princeton University Press. <ISBN:9780691235899>.

Downloads

CRAN

496

Last 30 days

7630th

1.6K

Last 90 days

3.5K

Last year

Trend: -2.2% (30d vs prior 30d)

r2u CRAN

12

Last 30 days

50

Last 90 days

154

Last year

Trend: -53.9% (30d vs prior 30d)

autoCRAN

1

Last 7 days

3

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (1)

suggests

Dependency Network

Dependencies Reverse dependencies nnsolve quadprog Rfast Rfast2 consrq cols

Version History

8 tracked
updated 1.7 ← 1.6 diff Apr 15, 2026
updated 1.6 ← 1.5 diff Mar 24, 2026
new 1.5 Mar 10, 2026
updated 1.5 ← 1.3 diff Dec 19, 2024
updated 1.3 ← 1.2 diff Nov 18, 2024
updated 1.2 ← 1.1 diff Oct 15, 2024
updated 1.1 ← 1.0 diff Jan 10, 2024
new 1.0 Oct 29, 2023