Skip to content

rclsp

A Modular Two-Step Convex Optimization Estimator for Ill-Posed Problems

v0.5.0 · Mar 9, 2026 · MIT + file LICENSE

Description

Convex Least Squares Programming (CLSP) is a two-step estimator for solving underdetermined, ill-posed, or structurally constrained least-squares problems. It combines pseudoinverse-based estimation with convex-programming correction methods inspired by Lasso, Ridge, and Elastic Net to ensure numerical stability, constraint enforcement, and interpretability. The package also provides numerical stability analysis and CLSP-specific diagnostics, including partial R^2, normalized RMSE (NRMSE), Monte Carlo t-tests for mean NRMSE, and condition-number-based confidence bands.

Downloads

2.6K

Last 30 days

2621st

3.1K

Last 90 days

3.4K

Last year

Trend: +806.9% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 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-macos-arm64 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 17, 2026
ERROR 9 OK · 0 NOTE · 0 WARNING · 5 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-linux-x86_64-debian-clang

tests

Running ‘testthat.R’ [4s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rclsp)
  > 
  > test_check("rclsp")
  Saving _problems/test-clsp-42.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Fail
...[truncated]...
) == 2L) as.matrix else as.vector)(y)
   10.         └─base::as.matrix.default(y)
   11.           └─base::array(...)
   12.             └─base::as.vector(data)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-devel-linux-x86_64-fedora-gcc

tests

Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rclsp)
  > 
  > test_check("rclsp")
  Saving _problems/test-clsp-42.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests
...[truncated]...
) == 2L) as.matrix else as.vector)(y)
   10.         └─base::as.matrix.default(y)
   11.           └─base::array(...)
   12.             └─base::as.vector(data)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-linux-x86_64

tests

Running ‘testthat.R’ [5s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rclsp)
  > 
  > test_check("rclsp")
  Saving _problems/test-clsp-42.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Fail
...[truncated]...
) == 2L) as.matrix else as.vector)(y)
   10.         └─base::as.matrix.default(y)
   11.           └─base::array(...)
   12.             └─base::as.vector(data)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-windows-x86_64

tests

Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rclsp)
  > 
  > test_check("rclsp")
  Saving _problems/test-clsp-42.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed 
...[truncated]...
) == 2L) as.matrix else as.vector)(y)
   10.         └─base::as.matrix.default(y)
   11.           └─base::array(...)
   12.             └─base::as.vector(data)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-oldrel-windows-x86_64

tests

Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rclsp)
  > 
  > test_check("rclsp")
  Saving _problems/test-clsp-42.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed 
...[truncated]...
) == 2L) as.matrix else as.vector)(y)
   10.         └─base::as.matrix.default(y)
   11.           └─base::array(...)
   12.             └─base::as.vector(data)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted

Reverse Dependencies (2)

imports

Dependency Network

Dependencies Reverse dependencies Matrix CVXR MASS rlppinv rtmpinv rclsp

Version History

new 0.5.0 Mar 10, 2026
updated 0.5.0 ← 0.4.0 diff Mar 8, 2026
updated 0.4.0 ← 0.3.0 diff Feb 18, 2026
updated 0.3.0 ← 0.2.0 diff Jan 29, 2026
updated 0.2.0 ← 0.1.0 diff Nov 25, 2025
new 0.1.0 Nov 16, 2025