Skip to content

Commit

Permalink
metrics names update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsemharb committed Feb 14, 2023
1 parent 7ef757b commit 4019184
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/RunStudy.R
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ runStudy <- function(connectionDetails = NULL,
median = median(timeToEvent),
q3 = quantile(timeToEvent, 0.75),
maximum = max(timeToEvent)) %>%
dplyr::mutate(iqr = q3 - q1, analysis_name = "Time to Treatment Switch") %>%
dplyr::mutate(iqr = q3 - q1, analysisName = "Time to Treatment Switch") %>%
dplyr::relocate(iqr, .before = minimum)

timeToTreatmentSwitch <- purrr::map_df(targetIds, function(targetId){
Expand Down Expand Up @@ -325,7 +325,7 @@ runStudy <- function(connectionDetails = NULL,
target_ids = paste(targetIds, collapse = ', '))

sql <- paste0(sql, sqlAggreg)
metrics <- rbind(metrics, DatabaseConnector::querySql(connection, sql))
metrics <- rbind(metrics, DatabaseConnector::querySql(connection, sql, snakeCaseToCamelCase = T))

sqlAggreg <- SqlRender::loadRenderTranslateSql(dbms = connection@dbms,
sqlFilename = file.path("quartiles", "QuartilesAggregation.sql"),
Expand All @@ -343,7 +343,7 @@ runStudy <- function(connectionDetails = NULL,
target_ids = paste(targetIds, collapse = ', '))

sql <- paste0(sql, sqlAggreg)
metrics <- rbind(metrics, DatabaseConnector::querySql(connection, sql))
metrics <- rbind(metrics, DatabaseConnector::querySql(connection, sql, snakeCaseToCamelCase = T))

andrData$metrics_distribution <- metrics

Expand Down

0 comments on commit 4019184

Please sign in to comment.