gsm.kri package. Expand the
“Setup” section below to see the code used to generate the report. Or
scroll down for the standard KRI report output.
# Load libraries
library(gsm.core)
library(gsm.kri)
library(here)
## here() starts at /home/runner/work/gsm.kri/gsm.kri
## Retired metric: inactive, with results in earlier snapshots only.
## The example data have none, so one is copied from the Adverse Event Rate.
dfMetrics <- gsm.core::reportingMetrics_country %>%
dplyr::filter(MetricID == "Analysis_cou0001") %>%
dplyr::mutate(
MetricID = "Analysis_cou9999",
Metric = "Retired Metric",
Abbreviation = "RET",
Active = FALSE
) %>%
dplyr::bind_rows(gsm.core::reportingMetrics_country, .)
dfResults <- gsm.core::reportingResults_country %>%
dplyr::filter(
MetricID == "Analysis_cou0001",
SnapshotDate < max(SnapshotDate)
) %>%
dplyr::mutate(MetricID = "Analysis_cou9999") %>%
dplyr::bind_rows(gsm.core::reportingResults_country, .)
## Country Report
lCharts_country <- gsm.kri::MakeCharts(
dfResults = dfResults,
dfGroups = gsm.core::reportingGroups_country,
dfMetrics = dfMetrics,
dfBounds = gsm.core::reportingBounds_country
)
## Parsed -2,-1,2,3 to numeric vector: -2, -1, 2, 3
## Parsed -2,-1,2,3 to numeric vector: -2, -1, 2, 3
## Parsed -3,-2,2,3 to numeric vector: -3, -2, 2, 3
## Parsed -3,-2,2,3 to numeric vector: -3, -2, 2, 3
## Parsed 2,3 to numeric vector: 2, 3
## Parsed 2,3 to numeric vector: 2, 3
## Parsed 2,3 to numeric vector: 2, 3
## Parsed 2,3 to numeric vector: 2, 3
## Parsed 2,3 to numeric vector: 2, 3
## Parsed 2,3 to numeric vector: 2, 3
## Parsed 2,3 to numeric vector: 2, 3
## Parsed 2,3 to numeric vector: 2, 3
## Parsed -3,-2,2,3 to numeric vector: -3, -2, 2, 3
## MetricID not found in dfBounds. Please double check input data if intentional.
## Parsed 0.9,0.85 to numeric vector: 0.9, 0.85
## MetricID not found in dfBounds. Please double check input data if intentional.
## Parsed 1.5, 2.5 to numeric vector: 1.5, 2.5
## MetricID not found in dfBounds. Please double check input data if intentional.
## Parsed 1,2 to numeric vector: 1, 2
## MetricID not found in dfBounds. Please double check input data if intentional.
## Parsed 1,2 to numeric vector: 1, 2
## MetricID not found in dfBounds. Please double check input data if intentional.
## Parsed 0.2,0.3 to numeric vector: 0.2, 0.3
## MetricID not found in dfBounds. Please double check input data if intentional.
## Parsed 0.2,0.3 to numeric vector: 0.2, 0.3
## MetricID not found in dfBounds. Please double check input data if intentional.
## Parsed 0.2,0.3 to numeric vector: 0.2, 0.3
## MetricID not found in dfBounds. Please double check input data if intentional.
## Parsed 0.2,0.3 to numeric vector: 0.2, 0.3
## MetricID not found in dfBounds. Please double check input data if intentional.
## Parsed 0.2,0.3 to numeric vector: 0.2, 0.3
## MetricID not found in dfBounds. Please double check input data if intentional.
## Parsed 0.2,0.3 to numeric vector: 0.2, 0.3
## MetricID not found in dfBounds. Please double check input data if intentional.
## Parsed -2,-1,2,3 to numeric vector: -2, -1, 2, 3
## Warning: No data found for specified snapshot date: 2025-04-01. No charts will be
## generated.
| Nickname | OAK-99 |
| Status | Active |
| Site Activation | 141 / 150 (94%) |
| Participant Enrollment | 754 / 1000 (75.4%) |
Missing delta columns in dfResults: Flag_Change, Flag_Previous, Score_Change, Score_Previous, Numerator_Previous, Denominator_Previous, Metric_Previous . Not rendering list of newly changed flags.NULL
| Active | Type | ID | GroupLevel | Abbreviation | Metric | Numerator | Denominator | Model | AnalysisType | Score | Threshold | AccrualThreshold | AccrualMetric | GenerateRiskSignal | Priority | Flag | ScoreCol | RiskScoreWeight | WindowDays | ValueCol | WindowLength | NumeratorCol | DenominatorCol | nPropRate | nNumDeviations | MetricID |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TRUE | Analysis | cou0001 | Country | AE | Adverse Event Rate | Adverse Events | Days on Study | Normal Approximation | rate | Adjusted Z-Score | -2,-1,2,3 | 30 | Denominator | TRUE | 0 | NA | NA | NA | NA | NA | NA | NA | NA | NA | NA | Analysis_cou0001 |
| TRUE | Analysis | cou0002 | Country | SAE | Serious Adverse Event Rate | Serious Adverse Events | Days on Study | Normal Approximation | rate | Adjusted Z-Score | -2,-1,2,3 | 30 | Denominator | TRUE | 0 | NA | NA | NA | NA | NA | NA | NA | NA | NA | NA | Analysis_cou0002 |
| TRUE | Analysis | cou0003 | Country | PD | Non-Important Protocol Deviation Rate | Non-Important Protocol Deviations | Days on Study | Normal Approximation | rate | Adjusted Z-Score | -3,-2,2,3 | 30 | Denominator | TRUE | 0 | NA | NA | NA | NA | NA | NA | NA | NA | NA | NA | Analysis_cou0003 |
| TRUE | Analysis | cou0004 | Country | IPD | Important Protocol Deviation Rate | Important Protocol Deviations | Days on Study | Normal Approximation | rate | Adjusted Z-Score | -3,-2,2,3 | 30 | Denominator | TRUE | 0 | NA | NA | NA | NA | NA | NA | NA | NA | NA | NA | Analysis_cou0004 |
| TRUE | Analysis | cou0005 | Country | LB | Grade 3+ Lab Abnormality Rate | Grade 3+ Abnormal Labs Samples | Total Lab Samples | Normal Approximation | binary | Adjusted Z-Score | 2,3 | 10 | Numerator | TRUE | 0 | 0,1,2 | NA | NA | NA | NA | NA | NA | NA | NA | NA | Analysis_cou0005 |
| TRUE | Analysis | cou0006 | Country | SDSC | Study Discontinuation Rate | Subjects Discontinued - Study | Enrolled Subjects | Normal Approximation | binary | Adjusted Z-Score | 2,3 | 3 | Numerator | TRUE | 0 | 0,1,2 | NA | NA | NA | NA | NA | NA | NA | NA | NA | Analysis_cou0006 |
| TRUE | Analysis | cou0007-2 | Country | PTDC | Premature Treatment Discontinuation Rate | Enrolled and dosed participants who did not complete study drug per protocol | Enrolled & Dosed Subjects | Normal Approximation | binary | Adjusted Z-Score | 2,3 | 3 | Numerator | TRUE | 0 | 0,1,2 | NA | NA | NA | NA | NA | NA | NA | NA | NA | Analysis_cou0007-2 |
| TRUE | Analysis | cou0008 | Country | QRY | Query Rate | Queries | Total Data Points | Normal Approximation | rate | Adjusted Z-Score | 2,3 | 30 | Numerator | TRUE | 0 | 0,1,2 | NA | NA | NA | NA | NA | NA | NA | NA | NA | Analysis_cou0008 |
| TRUE | Analysis | cou0009 | Country | OQRY | Delayed Query Resolution Rate | Queries That Were Open > 30 Days | Total Queries | Normal Approximation | binary | Adjusted Z-Score | 2,3 | 30 | Numerator | TRUE | 0 | 0,1,2 | NA | NA | NA | NA | NA | NA | NA | NA | NA | Analysis_cou0009 |
| TRUE | Analysis | cou0010 | Country | ODAT | Delayed Data Entry Rate | Data Pages Entered > 10 Days | Total Data Pages | Normal Approximation | binary | Adjusted Z-Score | 2,3 | 30 | Numerator | TRUE | 0 | 0,1,2 | NA | NA | NA | NA | NA | NA | NA | NA | NA | Analysis_cou0010 |
| TRUE | Analysis | cou0011 | Country | CDAT | Data Change Rate | Data Points with 1+ Change | Total Data Points | Normal Approximation | binary | Adjusted Z-Score | 2,3 | 100 | Numerator | TRUE | 0 | 0,1,2 | NA | NA | NA | NA | NA | NA | NA | NA | NA | Analysis_cou0011 |
| TRUE | Analysis | cou0012 | Country | SF | Screen Failure Rate | Screen Failures | Screened Subjects | Normal Approximation | binary | Adjusted Z-Score | -3,-2,2,3 | 3 | Denominator | TRUE | 0 | NA | NA | NA | NA | NA | NA | NA | NA | NA | NA | Analysis_cou0012 |
| TRUE | Analysis | cou0013 | Country | PK | PK Collection Compliance Rate | PK Samples Collected | PK Samples Expected | Identity | identity | PK Collection Compliance Rate | 0.9,0.85 | 3 | Difference | TRUE | 0 | -2,-1,0 | NA | NA | NA | NA | NA | NA | NA | NA | NA | Analysis_cou0013 |
| TRUE | Analysis | cou0014 | Country | IE | Ineligibility | Number of subjects ineligible | Number of subjects enrolled | Identity (Numerator) | identity | Ineligible Participants | 1.5, 2.5 | 3 | Denominator | TRUE | 0 | 0,1,2 | Numerator | 0,8,16 | NA | NA | NA | NA | NA | NA | NA | Analysis_cou0014 |
| TRUE | Analysis | cou0015 | Country | DTH90 | Premature Death Rate | Deaths in First 90 Days | Enrolled Subjects | Identity | identity | Numerator | 1,2 | 1 | Denominator | TRUE | 0 | 0,1,2 | NA | 0,8,16 | 90 | NA | NA | NA | NA | NA | NA | Analysis_cou0015 |
| TRUE | Analysis | cou0019 | Country | IPNS | IP Non-Starter Rate | IP Non-Starters (Confirmed or Potential outside window) | Enrolled Subjects | Identity | identity | Numerator | 1,2 | 1 | Denominator | FALSE | 0 | 0,1,2 | NA | NA | NA | NA | NA | NA | NA | NA | NA | Analysis_cou0019 |
| TRUE | Analysis | cou0020a | Country | RMW | Repeat Measure (Weight) | Windows of Consecutive Identical Weight Values | Evaluable Weight Windows | Identity | identity | Weight Consecutive Repeat Rate | 0.2,0.3 | 3 | Denominator | FALSE | 0 | 0,1,2 | NA | NA | NA | weight | 3 | Numerator | Denominator | NA | NA | Analysis_cou0020a |
| TRUE | Analysis | cou0020b | Country | RMHR | Repeat Measure (Heart Rate) | Windows of Consecutive Identical Heart Rate Values | Evaluable Heart Rate Windows | Identity | identity | Heart Rate Consecutive Repeat Rate | 0.2,0.3 | 3 | Denominator | FALSE | 0 | 0,1,2 | NA | NA | NA | pulse | 3 | Numerator | Denominator | NA | NA | Analysis_cou0020b |
| TRUE | Analysis | cou0020c | Country | RMSBP | Repeat Measure (Systolic BP) | Windows of Consecutive Identical Systolic BP Values | Evaluable Systolic BP Windows | Identity | identity | Systolic BP Consecutive Repeat Rate | 0.2,0.3 | 3 | Denominator | FALSE | 0 | 0,1,2 | NA | NA | NA | sysbp | 3 | Numerator | Denominator | NA | NA | Analysis_cou0020c |
| TRUE | Analysis | cou0020d | Country | RMDBP | Repeat Measure (Diastolic BP) | Windows of Consecutive Identical Diastolic BP Values | Evaluable Diastolic BP Windows | Identity | identity | Diastolic BP Consecutive Repeat Rate | 0.2,0.3 | 3 | Denominator | FALSE | 0 | 0,1,2 | NA | NA | NA | diabp | 3 | Numerator | Denominator | NA | NA | Analysis_cou0020d |
| TRUE | Analysis | cou0020e | Country | RMRR | Repeat Measure (Respiratory Rate) | Windows of Consecutive Identical Respiratory Rate Values | Evaluable Respiratory Rate Windows | Identity | identity | Respiratory Rate Consecutive Repeat Rate | 0.2,0.3 | 3 | Denominator | FALSE | 0 | 0,1,2 | NA | NA | NA | resp | 3 | Numerator | Denominator | NA | NA | Analysis_cou0020e |
| TRUE | Analysis | cou0020f | Country | RMT | Repeat Measure (Temperature) | Windows of Consecutive Identical Temperature Values | Evaluable Temperature Windows | Identity | identity | Temperature Consecutive Repeat Rate | 0.2,0.3 | 3 | Denominator | FALSE | 0 | 0,1,2 | NA | NA | NA | temp | 3 | Numerator | Denominator | NA | NA | Analysis_cou0020f |
| FALSE | Analysis | cou0007 | Country | TDSC | Treatment Discontinuation Rate | Subjects Discontinued - Treatment | Enrolled Subjects | Normal Approximation | binary | Adjusted Z-Score | 2,3 | 3 | Numerator | FALSE | 0 | 0,1,2 | NA | NA | NA | NA | NA | NA | NA | NA | NA | Analysis_cou0007 |
| FALSE | Analysis | cou0001 | Country | RET | Retired Metric | Adverse Events | Days on Study | Normal Approximation | rate | Adjusted Z-Score | -2,-1,2,3 | 30 | Denominator | TRUE | 0 | NA | NA | NA | NA | NA | NA | NA | NA | NA | NA | Analysis_cou9999 |