Learn R Programming

BORG (version 0.2.5)

borg_certificate: Create Validation Certificate

Description

Generate a structured validation certificate documenting the BORG analysis for reproducibility and audit trails.

Usage

borg_certificate(diagnosis, data, comparison = NULL, cv = NULL)

Value

A borg_certificate object containing:

  • meta: Package version, R version, timestamp

  • data: Data characteristics and hash

  • diagnosis: Dependency type, severity, recommended CV

  • cv_strategy: CV type and fold count

  • inflation: Theoretical and empirical estimates

Arguments

diagnosis

A BorgDiagnosis object.

data

The data frame that was analyzed.

comparison

Optional. A borg_comparison object with empirical inflation estimates.

cv

Optional. A borg_cv object with the CV folds used.

See Also

borg_export for writing certificates to file.

Examples

Run this code
set.seed(42)
data <- data.frame(
  x = runif(100, 0, 100),
  y = runif(100, 0, 100),
  response = rnorm(100)
)
diagnosis <- borg_diagnose(data, coords = c("x", "y"), target = "response",
                           verbose = FALSE)
cert <- borg_certificate(diagnosis, data)
print(cert)

Run the code above in your browser using DataLab