Skip to content

gKRLS

1.0.4

Generalized Kernel Regularized Least Squares

1packages depend
7.7Kdownloads / year
91.0%test coverage
13/13checks pass

Overview

About
Maintained by Max GoplerudFirst published 2023-04-174 releasesCRAN page ↗GitHub ↗

Kernel regularized least squares, also known as kernel ridge regression, is a flexible machine learning method. This package implements this method by providing a smooth term for use with 'mgcv' and uses random sketching to facilitate scalable estimation on large datasets. It provides additional functions for calculating marginal effects after estimation and for use with ensembles ('SuperLearning'), double/debiased machine learning ('DoubleML'), and robust/clustered standard errors ('sandwich'). Chang and Goplerud (2024) doi:10.1017/pan.2023.27 provide further details.

Install

Health

CRAN checks
13OK
Slowest check: 5.2 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.60
91.0%
Coverage · measured lines
100%
Documentation · exports
6
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-04-22
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 1 earlier snapshots
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 228 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
96%
Return-value docs
80%
References docs
44%

Downloads

7.7K
CRAN downloads in the past year
Rank #5,463 · ~21/day · ~639/mo
Daily download trend is not available in this view yet.
25030 days
1.5K90 days
7.7K1 year
Compare downloads with other packages →
Also on409 r2u13 autocran

Repository

Repository
8Stars
3Forks
0Open issues
0Open PRs
0Releases
148Commits
5Contributors
148 commits · Last activity 2024-11-07

Stars over time

2024-09-09 · 82026-07-07 · 8

Repository practices

Upstream repositoryBeta

3 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/mgoplerud/gkrls on 2026-08-09.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (2)
Imports (4)
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Package Timeline

4 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.4Latest
    2024-11-07 · current release · diff ↗
  • 1.0.3
    2024-09-04 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.2
    2023-04-20 · diff ↗
  • 1.0.1
    2023-04-17
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2023-04-17
Total releases
4 / 3 yrs
License
GPL (>= 2) OSI
Download size
63 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("gKRLS")
Goplerud, M., & Chang, Q. (2024). gKRLS: Generalized Kernel Regularized Least Squares (Version 1.0.4) [Computer software]. https://doi.org/10.32614/CRAN.package.gKRLS

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for gKRLS version 1.0.4 [Data set]. HJJB, LLC. Data release v2026-08-15. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-15, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy