Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 107 ae assessment qualification docs #122

Merged
merged 3 commits into from
Feb 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ License: file LICENSE
Encoding: UTF-8
Imports:
dplyr,
lubridate,
broom,
lubridate,
magrittr,
broom
valtools
Suggests:
testthat (>= 3.0.0),
safetyData,
Expand Down
1 change: 1 addition & 0 deletions vignettes/validation/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!*
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#' @title Specifications for AE Assessment
#' @editor Nathan Kosiba
#' @editDate 2022-02-08
#' @riskAssessment
#' 1.1: 1, High Risk, High Impact
#' 1.2: 1, High Risk, High Impact
#' 1.3: 3, Low Risk, High Impact
#' 1.4: 2, Medium Risk, High Impact
#' 1.5: 4, Low Risk, Medium Impact
#' 1.6: 3, Medium Risk, Medium Impact

+ 1.1 Given correct input data an Adverse Event assessment can be done using
the poisson method
+ 1.2 Given correct input data an Adverse Event assessment can be done using
the wilcoxon method
+ 1.3 Assessments are correctly grouped by the site variable
+ 1.4 Given correct input data an flags will correctly be applied to records that
meet flagging criteria
+ 1.5 Assessment can return all data in the standard data pipeline
(`dfInput`, `dfTransformed`, `dfAnalyzed`, `dfFlagged`, and `dfSummary`)
+ 1.6 Ensure that missing and invalid data are handled correctly
27 changes: 27 additions & 0 deletions vignettes/validation/test_cases/Test_Cases_for_AE_Assessment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#' @title Test_Cases_for_AE_Assessment
#' @editor Nathan Kosiba
#' @editDate 2022-02-08
#' @coverage
#' 1.1: 1.1, 1.3
#' 1.2: 1.2, 1.3
#' 1.3: 1.4
#' 1.4: 1.4
#' 1.5: 1.5
#' 1.6: 1.6
#' 1.7: 1.6


+ Setup: DOCUMENT ANY SETUP THAT NEEDS TO BE DONE FOR TESTING

+ 1.1 Test that the AE assessment can return a correctly assessed data frame
for the poisson test grouped by the study variable when given correct input data
+ 1.2 Test that the AE assessment can return a correctly assessed data frame
for the wilcoxon test grouped by the study variable when given correct input data
+ 1.3 Test that sites are flagged with -1 when AE rate is lower than expected
+ 1.4 Test that sites are flagged with +1 when AE rate is higher than expected
+ 1.5 Test that Assessment can return all data in the standard data pipeline
(`dfInput`, `dfTransformed`, `dfAnalyzed`, `dfFlagged`, and `dfSummary`)
+ 1.6 Test that (NA, NaN) in input exposure data throws a warning and
drops the person from the analysis.
+ 1.7 Test that (NA, NaN) in input count data throws a warning and
drops the person from the analysis.
13 changes: 13 additions & 0 deletions vignettes/validation/validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package: gsm
working_dir: vignettes
output_dir: inst
report_rmd_name: qualification.Rmd
report_naming_format: Qualification_Report_{package}_v{version}_{date}
usernames:
nathan.kosiba:
name: Nathan Kosiba
title: Developer
role: Qualification Lead
validation_files:
- Specifications_for_AE_Assessment.md
- Test_Cases_for_AE_Assessment.md