OHDSI / EmpiricalCalibration

An R package for performing empirical calibration of observational study estimates
http://ohdsi.github.io/EmpiricalCalibration/
10 stars 9 forks source link

Contributions from Unit-test-a-thon Team 1 so far: improving unit test coverage #3

Closed keesvanbochove closed 3 years ago

keesvanbochove commented 3 years ago

These tests are mostly just following the code, if we have example data and expected results for e.g. non-normal distributions we could improve. Requesting intermediate review if possible, we will continue working on it tomorrow.

codecov[bot] commented 3 years ago

Codecov Report

Merging #3 (3475c25) into develop (1f3c581) will increase coverage by 28.94%. The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           develop       #3       +/-   ##
============================================
+ Coverage     9.56%   38.51%   +28.94%     
============================================
  Files           12       12               
  Lines         1641     1641               
============================================
+ Hits           157      632      +475     
+ Misses        1484     1009      -475     
Impacted Files Coverage Δ
R/EmpiricalCalibrationUsingAsymptotics.R 96.90% <ø> (+68.04%) :arrow_up:
R/MaxSprtCriticalValues.R 100.00% <0.00%> (+19.56%) :arrow_up:
src/RcppWrapper.cpp 89.79% <0.00%> (+26.53%) :arrow_up:
R/Likelihoods.R 78.46% <0.00%> (+61.53%) :arrow_up:
R/EmpiricalCalibrationUsingMcmc.R 69.84% <0.00%> (+69.84%) :arrow_up:
R/ConfidenceIntervalCalibration.R 71.27% <0.00%> (+71.27%) :arrow_up:
R/Evaluation.R 97.32% <0.00%> (+97.32%) :arrow_up:
R/ExpectedSystematicError.R 100.00% <0.00%> (+100.00%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1f3c581...3475c25. Read the comment docs.