R4EPI / projmgmt

Global issue tracker
1 stars 0 forks source link

Related R packages for descriptive data analyses #5

Open dirkschumacher opened 5 years ago

dirkschumacher commented 5 years ago

Scope: pratical packages on CRAN that can be used in an outbreak setting. No pure research methods.

aspina7 commented 5 years ago

Crazy, didnt realise there were this many. The epistats package is the one recently release by epiconcept, which tries to mimic stata, but think Dan's function is nicer than theirs (see other comment).

So far every basic epi package I have encountered has at least one glitch or one error in calculating something... (or is no longer actively maintained)

zkamvar commented 5 years ago

This is a hell of a list. I wonder what the code health looks like (age, tests, CI, dependencies).

zkamvar commented 5 years ago
library("packagemetrics")
library("dplyr")
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union
library("knitr")

pkgs <- "epitools
epiR
EpiStats
RSurveillance
pubh
Epi
scanstatistics
surveillance
epitrix
epitools
epitab
epinet
epiflows
EpiEstim
epiDisplay
EpiCurve
EpiContactTrace
epicontacts
epibasix
incidence"
pkg_vec <- strsplit(pkgs, "\n")[[1]]
pm <- packagemetrics::package_list_metrics(pkg_vec)

pm <- arrange(pm, 
              desc(has_tests),
              desc(ci),
              depends_count,
              desc(reverse_count),
              desc(published)
              )
ft <- packagemetrics::metrics_table(pm)
ft
package published dl\_last\_month stars tidyverse\_happy has\_tests vignette last\_commit last\_issue\_closed contributors depends\_count reverse\_count
epitrix 2018-08-28 339 4 0.9 0.9 3 1 1
incidence 2018-08-24 562 13 0.5 6 1
epicontacts 2017-11-21 298 5 1.3 0 1
epiflows 2018-08-14 215 7 2.6 2 1 0
scanstatistics 2018-01-24 232 26 1.9 1 1 0
surveillance 2018-07-24 1058 8 1
EpiContactTrace 2017-10-19 337 2 10 1 0
epitab 2018-07-04 280 1 0 0
pubh 2018-08-30 237 0 0 5 0
epitools 2017-10-26 7691 1 8
epitools 2017-10-26 7691 1 8
epibasix 2012-11-15 660 1 0
Epi 2018-08-23 6555 2 9
epiR 2018-08-22 4054 2 7
EpiStats 2018-10-08 624 2 0
epiDisplay 2018-05-10 1904 5 1
EpiCurve 2018-04-24 369 5 0
EpiEstim 2013-03-08 341 1
epinet 2018-02-13 324 0
RSurveillance 2016-10-04 212 0

Created on 2018-10-30 by the reprex package (v0.2.1)

zkamvar commented 5 years ago

Oh, hell. Here's the image:

image

dirkschumacher commented 5 years ago

Nice

thibautjombart commented 5 years ago

Awesome. And super useful. @zkamvar Could be nice to turn this into something we can put online actually - on repidemicsconsortium/projects :)