Skip to content

cohetsurr

Assessing Complex Heterogeneity in Surrogacy

v2.0 · Apr 10, 2025 · GPL

Description

Provides functions to assess complex heterogeneity in the strength of a surrogate marker with respect to multiple baseline covariates, in either a randomized treatment setting or observational setting. For a randomized treatment setting, the functions assess and test for heterogeneity using both a parametric model and a semiparametric two-step model. More details for the randomized setting are available in: Knowlton, R., Tian, L., & Parast, L. (2025). "A General Framework to Assess Complex Heterogeneity in the Strength of a Surrogate Marker," Statistics in Medicine, 44(5), e70001 <doi:10.1002/sim.70001>. For an observational setting, functions in this package assess complex heterogeneity in the strength of a surrogate marker using meta-learners, with options for different base learners. More details for the observational setting will be available in the future in: Knowlton, R., Parast, L. (2025) "Assessing Surrogate Heterogeneity in Real World Data Using Meta-Learners." A tutorial for this package can be found at <https://www.laylaparast.com/cohetsurr>.

Downloads

CRAN

243

Last 30 days

20430th

571

Last 90 days

2.2K

Last year

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

r2u CRAN

0

Last 30 days

28

Last 90 days

127

Last year

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

autoCRAN

0

Last 7 days

15

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

Code

Structure

Lines of code

1,028

Files

23

Compiled share

0%

Has compiled src

No

Language breakdown

R 638 (62.1%)Docs 390 (37.9%)

API

Exported functions

2

Internal functions

2

Recent export changes

v2.0+1 obs.het.surr
v1.0+1 complex.heterogeneity

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL

License flags

not SPDX, not OSI

History

Versions

3

First release

2024-11-21

Latest release

2025-04-11

Avg cadence

71 days

Cold removal rate

Dep drift

2

LOC over versions

v1.0: 503 LOCv1.1: 503 LOCv2.0: 1,028 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies matrixStats mvtnorm mgcv grf cohetsurr

Version History

4 tracked
new 2.0 Mar 10, 2026
updated 2.0 ← 1.1 diff Apr 10, 2025
updated 1.1 ← 1.0 diff Mar 5, 2025
new 1.0 Nov 20, 2024