Skip to content

gkrreg

0.5.0Package record

Gaussian Kernel Robust Regression (GKRReg)

0packages depend
1.1Kdownloads / year
90.8%test coverage
13/13flavors OK

Overview

About

Implements the Gaussian Kernel Robust Regression (GKRReg / GKRR) method proposed by De Carvalho, Lima Neto and Ferreira (2017) doi:10.1016/j.neucom.2016.12.035. The method re-weights observations iteratively using the Gaussian kernel so that poorly-fitted observations (outliers, leverage points) receive small weights, yielding resistance to Y-space outliers, X-space outliers and leverage points. Convergence is guaranteed by Propositions 4.1 and 4.2 of the original paper. Four estimators for the kernel width hyper-parameter are provided (S1: Caputo, S2: pairwise median, S3: residual variance, S4: corrected Akaike bandwidth), together with a data-driven selection rule. Inference is provided by a sandwich variance estimator with a family of heteroskedasticity-consistent finite-sample corrections adapted to the weighted leverage of the method, or by a pairs bootstrap that re-estimates the kernel width on each replicate (percentile, normal and bias-corrected accelerated intervals with p-values). Six real datasets from the robust regression literature are included to facilitate reproducible comparisons.

Changes in 0.5.0

New features

  • gkrr_vcov() computes the sandwich covariance matrix with any member of the GKRReg-HC family of finite-sample corrections (HC0 to HC4). The weighted leverage can be taken from the bread matrix (leverage = "bread", the quantity delivered by the leave-one-out expansion) or from the kernel-weighted hat matrix (leverage = "kernel", always in [0, 1]), and HC1/HC4 can be calibrated by the effective sample size sum(k_ii) (neff = "sum") or by Kish's effective sample size (neff = "kish").
  • vcov() gains a type argument dispatching to gkrr_vcov(). The default type = "HC0" reproduces the previous behaviour.
  • gkrr_vcov_all() returns standard errors for every variant at once, together with diagnostics (both effective sample sizes, the number of observations with a negative bread weight, and the range of both leverages). Intended for simulation studies.
Show all changes in 0.5.0Hide the rest of the changes in 0.5.0
  • gkrr_jackknife() refits the model with each observation deleted in turn and compares the exact leave-one-out residual with the one-step approximation used by HC3 and HC4.

Reproducibility

  • gkrr() and sigma2_s1() gain a seed argument. sigma_method = "s1" draws a random sub-sample and was previously **not reproducible**: repeated calls on the same data returned different estimates of gamma^2 and hence different coefficients. The caller's random number stream is left unchanged.

Documentation

  • The vignette now covers the HC family inside its inference section, rather than as an appendix: the effective sample size, the weighted leverage and its admissible range, the effect of kernel_update, gkrr_vcov_all() and the jackknife check, followed by a three-way comparison of HC0, the corrections and the bootstrap.
  • Man page titles harmonised to sentence case throughout, including the vignette title, which also appears in the package help index.
  • The introductory vignette was renamed from introduction to gkrreg, so that vignette("gkrreg") is unambiguous (vignette("introduction") collided with vignettes of the same name in other packages).
  • The summary() method for "gkrr_boot" objects now labels the printed quantiles of the bootstrap distribution.
  • The first author's name is no longer mangled in the package help page. Authors@R now uses a Unicode escape, keeping DESCRIPTION pure ASCII, so the accented character survives documentation generation.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.3 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK7 OK2026-06-18
Advisories

none known

Documentation

In release 0.5.0
READMENoVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.5.0Citation fileNo
Help pages
17 (1 internal)includes a package overview page
Examples that run
100%11 run in a plain check
Exported functions with examples
83%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
47%

Downloads

1.1K
CRAN downloads in the past year
Rank #15,598 · ~3/day · ~94/mo
Daily download trend is not available in this view yet.
31830 days
77990 days
1.1K1 year
Compare downloads with other packages →
Also on22 r2u6 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
License file reads as GPL-3.0 · Last activity 2026-06-17
Responsiveness
not measured
PracticesBeta

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

Checks run against github.com/marcelorpf/gkrreg on 2026-10-11.

Docs source (1)

GitHub Pages site last deployed 2026-06-17

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

Installing gkrreg adds 1 package (1 with compiled code, 252 KB of source tarballs). Heaviest: sm 252 KB.

Depends (1)
R >= 4.0.0
Imports (5)
statsgraphicsgrDevicesMASSsm
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Maintainer since 0.4.0 (2026)
Releases (2)

Pick two releases to compare their code metrics.

  • 0.5.0Latest
    record
    2026-10-14 · current release · diff ↗ ·
    added 3 exports
    gkrr_jackknife, gkrr_vcov, gkrr_vcov_all
    ·
    listed once in CRAN's queue
    Seen in one reading of CRAN's incoming queue, at 2026-10-14 15:39 UTC, so it stayed less than the time between readings.
  • 0.4.0
    record
    2026-06-17
  • R
    R 4.6.0 released · 2026-04-24
Across CRAN, the median accepted release of the past year spent 15 hours in the queue, 90% under 11 days.How queue time is measured

Package metadata

First published
2026-06-17
Total releases
2 / 1 yrs
License
GPL-3 OSI
Minimum R
≥ 4.0.0
Bundled data
3.8 KB / 6 files
Download size
302 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("gkrreg")
Rodrigo Portela Ferreira, M., & de Andrade Lima Neto, E. (2026). gkrreg: Gaussian Kernel Robust Regression (GKRReg) (Version 0.5.0) [Computer software]. https://doi.org/10.32614/CRAN.package.gkrreg

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 gkrreg version 0.5.0 [Data set]. HJJB, LLC. Data release v2026-10-19. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-19, 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