Coder Social home page Coder Social logo

roche / global-hta-evidence-open Goto Github PK

View Code? Open in Web Editor NEW
6.0 8.0 3.0 102.33 MB

Collection of R Packages that support analysis for the purposes of Health Technology Assessment (HTA)

Home Page: https://roche.github.io/Global-HTA-Evidence-Open/

License: Apache License 2.0

R 100.00%
r open-source hta health-economics health-economic-evaluation cost-effectiveness cost-effectiveness-analysis

global-hta-evidence-open's People

Contributors

aponterv-roche avatar gsteigs1-roche avatar iain-t-bennett-roche avatar javier-sanchez-alvarez-roche avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

global-hta-evidence-open's Issues

No weights allowed in runPSM

runPSM function does not allow to implement weights in the regressions, which could be useful in the case of MAICs etc

[MAIC]: R CMD check failure "T used instead of TRUE"

I'm trying to check this package before use and was running into a few issues.

I'm receiving errors when trying to run the examples for this package, either independently via tools::testInstalledPackage("MAIC", types = "examples") or as part of R CMD check (via devtools::check("./MAIC")).

Using testInstalledPackage

When using testInstalledPackage, I get an error about the use of T. During example execution, T and F are masked with code that will throw these errors when they're used (from R email list).

> KM_plot <- ggsurvplot(KM_list,
+                       combine = TRUE,
+                       risk.table=T, # numbers at risk displayed on the plot
+                       break.x.by=50,
+                       xlab="Time (days)",
+                       censor=FALSE,
+                       legend.title = "Treatment",
+                       title = "Kaplan-Meier plot of overall survival",
+                       legend.labs=c("Intervention",
+                                     "Intervention weighted",
+                                     "Comparator"),
+                       font.legend = list(size = 10)) +
+   guides(colour=guide_legend(nrow = 2))
Error in ggsurvplot(KM_list, combine = TRUE, risk.table = T, break.x.by = 50,  : 
  T used instead of TRUE

Using R CMD check

A simple enough issue, but currently throwing errors. Fixed by adding Suggests: knitr to DESCRIPTION

VignetteBuilder package not declared: ‘knitr’

Using devtools::check("./MAIC", vignettes = FALSE)

When running R CMD check I get namespace errors, which may be due to the masking of .oldSearch in the check environment.

  > library(MAIC)
  > library(ggplot2)
  > library(survminer)
  Loading required package: ggpubr
  Error: package or namespace load failed for ‘ggpubr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
   there is no package called ‘foreign’
  Error: package ‘ggpubr’ could not be loaded
  Execution halted

I think that this might be a result of these undeclared dependencies required to run the examples. Even if these are installed in my library, they aren't being picked up while running the examples during R CMD check. I was able to fix this by adding these three dependencies as Suggests: dependencies. With these added, I get the same error as when running tools::testInstalledPackages (the issue with using T in examples)

* checking for unstated dependencies in examples ... WARNING
'library' or 'require' calls not declared from:
  ‘flextable’ ‘officer’ ‘survminer’

[MAIC}: Cannot pass arguments to `optim`

The estimate_weights() function does not have a ... argument allowing a user to pass arguments to optim() even though the documentation says this is possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.