R Observatory
Search
install.packages("betaSandwich")
CRAN 30-day downloads, method
337−8.7% down on the 30 days before, the worse direction
Test coverage, method
100%of lines run by tests

Generates robust confidence intervals for standardized regression coefficients using heteroskedasticity-consistent standard errors for models fitted by lm() as described in Dudgeon (2017) <doi:10.1007/s11336-017-9563-z>.

Full description

Generates robust confidence intervals for standardized regression coefficients using heteroskedasticity-consistent standard errors for models fitted by lm() as described in Dudgeon (2017) <doi:10.1007/s11336-017-9563-z>. The package can also be used to generate confidence intervals for R-squared, adjusted R-squared, and differences of standardized regression coefficients. A description of the package and code examples are presented in Pesigan, Sun, and Cheung (2023) <doi:10.1080/00273171.2023.2201277>.

Maintainer
Ivan Jacob Agaloos Pesigan
Latest release
11 Jun 2026
First release
20 Sep 2022

Compare with another package

More details
Releases
9
Needs compilation
No
Needs R
>= 3.5.0
Config/roxygen2/version
8.0.0.9000
LazyData
true
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("betaSandwich")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

The repository also keeps a CITATION.cff.

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

From data release v2026-10-29, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    1.0.9
    Time taken
    33 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    1.0.9
    Time taken
    26 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    1.0.9
    Time taken
    22 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    1.0.9
    Time taken
    22 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    1.0.9
    Time taken
    58 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    1.0.9
    Time taken
    16 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    1.0.9
    Time taken
    66 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    1.0.9
    Time taken
    62 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    1.0.9
    Time taken
    31 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    1.0.9
    Time taken
    31 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    1.0.9
    Time taken
    12 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    1.0.9
    Time taken
    36 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    1.0.9
    Time taken
    57 s
  • 13 OK

Over time

No change since 5 Aug 2026

As a list (3)
ChangedWorst statusOKNotesWarningsErrors
5 Aug 2026OK13000
1 Aug 2026Note12100
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
423−11.1% down on the 30 days before, the worse directionIt is the sum of 3 channels: CRAN, r2u and autoCRAN.

CRAN rank

11,485 of 26,553

CRAN

337 downloads in the last 30 days

Rank
11,485 of 26,553
Change
−8.7% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

70 downloads in the last 30 days

Rank
2,739 of 30,526
Change
−5.4% down on the 30 days before, the worse direction

It is in the total. Take it out

autoCRAN

16 downloads in the last 30 days

Rank
3,022 of 29,233
Change
−51.5% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

All channels
158
not complete yet

Compare downloads

Needs
0
Dependent packages
0
Suggested by
3
Optional extras (6)

.ProcessLM

Kind
Internal R function
File
R/processLM-process-lm-dot.R, line 57
Lines
151
Complexity
2
Covered by tests
100%
Functions
59
Public exports
5
Lines of R code
3,063
Median complexity
1
Functions (59)
FunctionKindFileLinesComplexityCovered
BetaADFPublicR/betaSandwich-beta-adf.R871100%
BetaHCPublicR/betaSandwich-beta-hc.R1051100%
BetaNPublicR/betaSandwich-beta-mvn.R611100%
DiffBetaSandwichPublicR/betaSandwich-diff-beta-sandwich.R412100%
RSqBetaSandwichPublicR/betaSandwich-r-sq-beta-sandwich.R692100%
.ACovHCInternalR/betaSandwich-acov-hc-dot.R131100%
.ACovSEMInverseInternalR/betaSandwich-acov-sem-inverse-dot.R61100%
.BetaCIInternalR/betaSandwich-beta-ci-dot.R172100%
.BetaStarofRhoInternalR/strRegression-beta-star-of-rho-dot.R171100%
.CIWaldInternalR/wald-ci-wald-dot.R753100%
.CovHCInternalR/betaSandwich-cov-hc-dot.R112100%
.DMatInternalR/linearAlgebra-d-mat-dot.R231100%
Size and composition

Lines by kind (5,566)

KindLinesShare
R code3,06355%
Tests1,45726%
Documentation1,04619%

Lines by language

LanguageLinesShare
R4,52081%
Rd1,04619%

Languages are counted from file extensions.

Files
87
R functions
59
Object systems
S3: 18 methods
Complexity
Median
1
Mean
1.53
Highest
8
Median lines per function
17
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
59
Calls
80
Unconnected
5
Groups
3
Growth (9 releases)
Total lines by release
1,936 on 20 Sep 20225,566 on 11 Jun 2026
Release changes

Both releases side by side

1.0.8 to 1.0.9, 19 Oct 2025 to 11 Jun 2026

Files changed
16
Lines added
67
Lines deleted
56
Exports
No change
Changed measures (2)
MeasureSubjectBeforeAfter
Total linesStructure5,5615,566
Lines of documentationDocumentation1,0411,046
Most changed files (12 of 16)
FileLines addedLines deleted
MD51515
man/BetaADF.Rd77
man/BetaHC.Rd66
man/BetaN.Rd66
DESCRIPTION55
man/DiffBetaSandwich.Rd55
man/RSqBetaSandwich.Rd55
NEWS.md60
man/betaSandwich-package.Rd50
R/betaSandwich-beta-adf.R22
R/betaSandwich-methods-diff-beta-sandwich.R22
LICENSE11

The tests ran and coverage was measured.

Lines run by tests
100%
Expressions run by tests
100%
Test cases
41
Exports named in tests
100%
Coverage by file (44)

44 files measured, the first 20 shown, least covered first.

FileLinesRun by testsNot runCoverage
R/betaSandwich-acov-hc-dot.R 1 function
990100%
.ACovHC990100%
R/betaSandwich-acov-sem-inverse-dot.R 1 function
330100%
.ACovSEMInverse330100%
R/betaSandwich-beta-adf.R 1 function
83830100%
BetaADF83830100%
R/betaSandwich-beta-ci-dot.R 1 function
13130100%
.BetaCI13130100%
R/betaSandwich-beta-hc.R 1 function
98980100%
BetaHC98980100%
R/betaSandwich-beta-mvn.R 1 function
58580100%
BetaN58580100%
R/betaSandwich-cov-hc-dot.R 1 function
550100%
.CovHC550100%
R/betaSandwich-diff-beta-ci-dot.R 1 function
12120100%
.DiffBetaCI12120100%
R/betaSandwich-diff-beta-sandwich.R 1 function
37370100%
DiffBetaSandwich37370100%
R/betaSandwich-gamma-hc-dot.R 1 function
17170100%
.GammaHC17170100%
R/betaSandwich-jacobian-diff-beta-star-wrt-beta-star-dot.R 1 function
12120100%
.JacobianDiffBetaStar12120100%
R/betaSandwich-methods-beta-sandwich.R 6 functions
70700100%
coef.betasandwich110100%
confint.betasandwich14140100%
print.betasandwich770100%
print.summary.betasandwich17170100%
summary.betasandwich26260100%
vcov.betasandwich550100%
R/betaSandwich-methods-diff-beta-sandwich.R 6 functions
68680100%
coef.diffbetasandwich110100%
confint.diffbetasandwich16160100%
print.diffbetasandwich770100%
print.summary.diffbetasandwich17170100%
summary.diffbetasandwich26260100%
vcov.diffbetasandwich110100%
R/betaSandwich-methods-r-sq-beta-sandwich.R 6 functions
69690100%
coef.rsqbetasandwich440100%
confint.rsqbetasandwich14140100%
print.rsqbetasandwich770100%
print.summary.rsqbetasandwich17170100%
summary.rsqbetasandwich26260100%
vcov.rsqbetasandwich110100%
R/betaSandwich-q-mat-dot.R 1 function
62620100%
.QMat62620100%
R/betaSandwich-r-sq-beta-sandwich.R 1 function
64640100%
RSqBetaSandwich64640100%
R/betaSandwich-r-sq-ci-dot.R 1 function
13130100%
.RSqCI13130100%
R/betaSandwich-r-sq-vcov-dot.R 1 function
21210100%
.RSqCov21210100%
R/gammaADF-gamma-adf-consistent-dot.R 1 function
21210100%
.GammaADFConsistent21210100%
R/gammaADF-gamma-adf-unbiased-dot.R 1 function
23230100%
.GammaADFUnbiased23230100%

Show all 44 files

Coverage run
Lines counted
1,404
Lines the tests ran
1,404
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
41
Lines of tests
1,457
Test lines per line of code
0.48
Exports documented
100%
Arguments documented
100%
Return value documented
100%
Help pages with examples
90.9%
Examples run in checks
100%
Other documentation
README
No
Release notes file
Yes
Help pages
22
Lines of documentation
1,046
DatasetSizeColumns
nas19821982 National Academy of Sciences Doctoral Programs Dataalso in 3 other packages46 × 7QUALITY, NFACUL, NGRADS, PCTSUPP, PCTGRT, NARTIC and 1 more

jeksterslab / betasandwich on github.com

Stars
0
Forks
0
Open issues
0
Last commit
13 Jun 2026
Activity
Commits
265
Open pull requests
0
Tagged releases
9
Latest tagged release
v1.0.9, 12 Jun 2026
In development
Default branch at 1.0.9.9000, ahead of CRAN 1.0.9 (checked 2026-10-25)
Issues closed in
–
Pull requests closed in
–
Pull requests merged
–
Created
6 Sep 2022
Licence file reads as
–
Development practices (10)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Docs sourceGitHub Pages site last deployed 2026-06-14
The repository has a site deploy workflow
CoverageCoverage reporting
Reproducibility and dev environmentMakefile, Dev Container
Research and citationCITATION.cff
Lint, format, editorLint workflow, RStudio project

Method, repository practices

Across jeksterslab

R releases
  • On CRAN
  • Release
VersionReleasedR
1.0.9 current11 Jun 20264.6.0
1.0.819 Oct 20254.5.1
1.0.714 Apr 20244.3.3
1.0.615 Oct 20234.3.1
1.0.58 Jul 20234.3.1
1.0.425 Apr 20234.3.0
1.0.317 Dec 20224.2.2
1.0.27 Oct 20224.2.1
Earlier versions (1)
VersionReleasedR
1.0.120 Sep 20224.2.1
Release notes (1.0.9)

Patch

  • Minor edits to methods.