Changes
- Added
controlType
argument torunSccsAnalyses()
, explicitly setting the type of (negative) controls: outcome controls or exposure controls. Setting to "outcome" (the default) will now group by exposure (and nesting cohort if defined).
Changes
-
More informative error messages when analysis specifications are inconsistent.
-
Throwing error when defining an analysis that does not specify at least one era covariate that is the exposure of interest.
-
The
includeEraIds
argument ofcreateEraCovariateSettings()
no longer has a default, forcing users to explicitly set this to avoid erroneously specifying all covariates.
Bugfixes
-
Fixed 'ORDER BY is ignored in subqueries without LIMIT' warning when calling
createSccsIntervalData()
. -
Fixed 'std::bad_alloc' error when any observation period start date is before 1970.
-
Fixed NA covariate values when age, season, or calendar time splines are removed because there are fewer cases than knots.
Bugfixes
- Fix export when there are multiple exposure-outcomes per SCCS data file.
Bugfixes
- Fix
exposures_outcome_set_id
field in 'sccs_exposure' and 'sccs_exposures_outcome_set' tables.
Changes
- Switching
exposures_outcome_set_id
from a sequential number to a hash to avoid issues when dividing a set of analyses over various machines, and combining the results later.
Bugfixes
-
Fixed error in SQL about "#case_in_period".
-
Fixed case count in
createStudyPopulation()
when restricting time in priorgetDbSccsData()
call, e.g. by defining a study period and/or nesting cohort. -
Preventing duplicate calendar time and age knots, causing unique key violation errors when uploading.
Bugfixes
- Fixed 'oneSidedP not found' error when unable to fit a model.
Changes
-
Allowing nesting cohort ID to be specified as part of the exposure-outcome pair.
-
Deprecating the
useCustomCovariates
anduseNestingCohort
arguments of thegetDbSccsData()
function. -
Optimized
runSccsAnalyses()
to allow running bigger sets of analyses. -
Adding
sccs_time_period
table to export, capturing the calendar time period included in the analysis. -
Adding one-sided (calibrated) p-values to results summary and results model.
-
exportToCsv()
can now use multithreading for speed. -
Adding
unblindForEvidenceSynthesis
field tosccs_diagnostics_summary_table
. -
Unblinding logic now same as for
CohortMethod
: also unblind if a diagnostic is not evaluated (instead of only unblinding when passing).
Bugfixes
-
Handling edge case in
computeTimeStability()
when there is only 1 month. -
Correcting computation of fraction of start month observed for
computeTimeStability()
(was off by 1/31).
Changes
-
Added the
restrictTimeToEraId
argument to thecreateStudyPopulation()
andcreateCreateStudyPopulationArgs()
functions to allow automatically restricting study time to when the exposure was observed (e.g. when the drug was on the market). -
Switching from cubic to quadratic splines for age, season, and calendar time to reduce degrees of freedom.
-
Deprecating the
studyStartDate
andstudyEndDate
arguments of thegetDbSccsData()
function. -
Introducing the
studyStartDates
andstudyEndDates
arguments of thegetDbSccsData()
function. These allow specification of multiple (non-overlapping) study periods. This can for example be useful when one wishes to exclude the time of the COVID-19 pandemic to avoid temporal instability. -
The spline for calendar time effects can now be multi-segmented, for multiple study periods. Internal knots are evenly distributed over segments based on the amount of data per segment. Additional boundary knots are automatically added for additional segments.
-
Changed the stability metric implemented in the
computeTimeStability()
function in two ways: First, the observed rate of the outcome for each month is now compared against the expected rate. This expected rate considers which persons were observed during that month, and if specified, the adjustment for season and calendar time. Second, instead of considering whether any single month exceeded the threshold, the metric now considers whether the mean ratio across all months exceeds the threshold. Together, this makes the metric more robust, and less likely to declare instability when the majority of data is stable. -
Changed the
plotEventToCalendarTime()
to show the observed-to-expected ratio, both with and without adjustments for season and calendar time (if specified in the model).
Bugfix
- Using BIGINT when summing patient days to avoid errors when populations are large.
Changes
-
Adding the
genderConceptIds
argument tocreateStudyPopulation()
. -
Dropping dependency on
survival
.
Bugfix
-
Handling edge case in
computeMdrr()
when all observed time is exposed. (ReturningInf
instead of throwing an error.) -
Not ignoring
allowRegularization
in calendar time settings. -
When person has multiple nesting cohort entries, prevent double-counting of cases in attrition table if nesting cohort entries have no outcome.
Changes
- The
studyStartDate
andstudyEndDate
arguments have been changed back to strings instead of dates to facilitate easier conversion to and from JSON.
Bug fixes
- Minor fix related to upcoming DatabaseConnector V6.0.0.
Changes
-
Removing deprecated
oracleTempSchema
argument fromgetDbSccsData()
andrunSccsAnalyses()
functions. -
Adding checking of user input to all functions.
-
The
studyStartDate
andstudyEndDate
arguments of thegetDbSccsData()
function have been changed from character to Date type. -
Dropping support of split points. This can be achieved by creating multiple era covariates with different times at risk.
-
The
computeMdrr()
now works with either anSccsIntervalData
or anSccsModel
object. -
Major overhaul of the multiple-analyses framework:
-
Added the
createExposure()
function for creating objects of type `exposure. This argument allows specifying the true effect size of the exposure, if known (e.g. for negative controls). -
The
createExposureOutcome()
function has been replaced with thecreateExposuresOutcome()
function, which accepts multiple objects of typeexposure
. -
The
createEraCovariateSettings()
function has a new argumentexposureOfInterest
which determines if its estimate will be reported in the result summary. -
The results summary table has been pivoted so it now only has one estimate per row. The results summary table is now precomputed as part of
runSccsAnalyses()
, automatically includes empirically calibrated estimates (if controls have been provided) and can be retrieved using thegetResultsSummary()
function. -
The reference table (the output of
runSccsAnalyses()
) can now always be retrieved using thegetFileReference()
function. -
Dropping
exposureType
andoutcomeType
options from thecreateSccsAnalysis ()
function, since the notion of analysis-specific exposure and outcome selection strategies can also be implemented using theanalysesToExclude
argument ofrunSccsAnalyses()
. -
Settings related to multi-threading are combined in to a single settings object that be created using the new
createSccsMultiThreadingSettings()
function. -
The
design
argument of thecreateSccsAnalysis()
function has been removed, and thecreateSccsIntervalDataArgs
andcreateScriIntervalDataArgs
arguments have been replaced with a singlecreateIntervalDataArgs
argument that accepts arguments for both thecreateSccsIntervalData()
and createScriIntervalData()` functions.
-
-
Added the
exportToCsv()
function, to export the results of a multi-analysis study to CSV files for sharing between sites. The output results model is now documented in a new vignette.
Changes
-
Setting the
deleteCovariatesSmallCount
argument to 0 in thegetDbSccsData()
andcreateGetDbSccsDataArgs()
functions. This was originally set to 100 for SCCS analyses with many covariates, but makes no sense when considering only one or a few exposures. -
Adding the
computePreExposureGainP()
function. -
Setting default
maxRatio
incomputeTimeStability()
to 1.25 (instead of 1.1) to avoid false positives.
Bug fixes
-
Fixing "RIGHT and FULL OUTER JOINs are not currently supported" error on SQLite when using
drug_era
orcondition_era
table. -
Fixing
computeTimeStability()
per-month p-value (was showing the minimum p-value for all months). -
Fixing uncaught errors when fitting models caused by Cyclops's new return flags.
-
Fix error about Andromeda object already being closed when generating SCCS era data.
Changes
-
Setting the default Cyclops control object to use
resetCoefficients = TRUE
to ensure we always get the exact same model, irrespective of the number of threads used. -
Added
maxRatio
argument tocomputeTimeStability()
.
Bug fixes
-
Fixing missing months in
plotEventToCalendarTime()
when there are no observation period starts and ends in those months. -
Now limiting the number of unexposed cases when including only a calendar time spline (as set by
minCasesForTimeCovariates
). -
Fix error when calling
computeMdrr()
on ansccsIntervalData
object that does not contain the exposure of interest. -
Fixed typo in
computeMdrr()
, renamingpropPopExposued
topropPopulationExposed
.
BugFixes
- Remove dependency on develop branch of
SqlRender
.
Changes
-
Adding optional calendar time covariate.
-
Added the
analysesToExclude
argument torunSccsAnalyses()
, allowing the users to specify exposure-outcome-analysis combinations to exclude from execution. -
Fixing seed for regularization cross-validation to improve reproducibility.
-
Added the
computeTimeStability()
function.
Changes
-
Adding likelihood profile to SCCS model objects if
profileLikelihood
argument is set toTRUE
when callingcreateEraCovariateSettings()
. -
Deprecating
oracleTempSchema
argument in favor oftempEmulationSchema
in accordance with newSqlRender
convention. -
Adding optional
title
argument to all plotting functions. -
Adding
highlightExposedEvents
argument toplotExposureCentered
function. -
Switching power calculation default method to signed root likelihood ratio as recommended by Musonda et al. (2005).
BugFixes
-
Prevent error when excluding variable not in data from regularization.
-
Removing unexposed subjects when computing power to avoid overestimating statistical power.
Changes
-
Adding the self-controlled risk interval design.
-
Downloading person and observation period IDs as strings to avoid issues with 64-bit integers. (These IDs are not used by SCCS, and are used for reference only).
-
Outputting log likelihood ratio as part of estimates.
-
Computing meta-data on covariates.
BugFixes
-
Fixed syntax error in SQL when using a nesting cohort.
-
Fixing error when sampled cohort is empty.
-
Fixing nesting.
-
Attrition table now also includes lines where remaining count is zero.
-
Fixing custom covariates download.
-
Fixing error on Oracle due to long temp table name.
-
Fixing computation of confidence intervals (CIs) when not all estimates for which CIs are computed have data.
Changes
-
Switching from ff to Andromeda for storing large data objects.
-
Making creation of the study population a separate step, with the new
createStudyPopulation
function. -
The data on cohorts, exposure, and outcome eras retrieved from the database is now consistently referred to as 'eras'. Data transformed to non-overlapping intervals is now referred to as 'sccsIntervalData'.
-
Adding tracking of attrition.
-
Automatically removing age spline if selected censoring model already adjusts for age.
BugFixes
-
Generating sequential case IDs instead of observation period IDs to avoid collisions due to loss of precision when converting BIGINT to R's numeric.
-
Added more heuristics to detect ill-behaving censoring functions when adjusting for event-dependent censoring.
Bugfixes
-
Fixed errors introduced by R 4.0.0.
-
Gracefully handling when fitting the outcome model hits the max number of iterations.
Bugfixes
-
Several workaround for issues with the ff package.
-
Fixed bug causing age to be read incorrectly when creating eras.