Gilead-BioStats / gsm

Good Statistical Monitoring R Package
https://gilead-biostats.github.io/gsm/
Apache License 2.0
36 stars 9 forks source link

Update all sampleData to use analyticsX and reportingX #1666

Closed lauramaxwell closed 1 month ago

lauramaxwell commented 1 month ago

Overview

Updated naming convention for test datasets to include the pipeline it is used for. Particularly useful for dfBounds, which exists in both pipelines, but with slightly different specifications.

closes #1662

Test Notes/Sample Code

This should create charts and a report successfully

metrics<- unique(reportingResults$MetricID)
charts <- metrics %>% map(~Visualize_Metric(
  dfResults = reportingResults,
  dfBounds = reportingBounds,
  dfGroups = reportingGroups,
  dfMetrics = reportingMetrics,
  strMetricID = .x
)
) %>% setNames(metrics)

Report_KRI(
  lCharts = charts,
  dfResults = reportingResults,
  dfGroups = reportingGroups,
  dfMetrics = reportingMetrics,
  strOutpath = "~/test.html"
)

Notes: