Code Monkey home page Code Monkey logo

minipch's Introduction

SimNPH

Codecov test coverage CRAN status Lifecycle: stable R-CMD-check

Simulate Non Proportional Hazards

This package provides several functions to simulate survival data with non proportional hazards using the general purpose simulation package SimDesign.

This package follows the structure of SimDesing and provides functions that can readily be used as generate, analyse and summarise arguments in SimDesign's runSimulation function.

Usage

Installation

The current development version can be installed with:

remotes::install_git("https://github.com/SimNPH/SimNPH.git")

Getting Started

Documentation for all functions can be found in the respective help topics in the package after installation or here

Some examples of data generation, testing and estimation can be found in this vignette.

Results of the Simulation Study

The results of the simulation study done by the CONFIRMS consortium in the course of the EMA tender will be published in an upcoming paper (preprint on arXiv) and are presented in a shinylive App.

Reproducing the Results of the Simulation study

The parameters for the simulations were set using the following scripts:

  • scripts/set_parameters_delayed_effect.R
  • scripts/set_parameters_crossing_hazards.R
  • scripts/set_parameters_subgroup.R
  • scripts/set_parameters_progression.R

The simulations were then run using the following scripts:

  • scripts/run_simulations_delayed_effect.R
  • scripts/run_simulations_crossing_hazards.R
  • scripts/run_simulations_subgroup.R
  • scripts/run_simulations_progression.R

Which in turn use scripts/run_simulations_common.R.

All scripts are executed with the base directory of this repository as working directory.

Changes since the conduct of the simulation study:

  • The version number of SimNPH was increased, to reproduce the simulation study, remove the check from run_simulations_...
  • Simulation parameters and results were previously stored in the folder data. This folder was renamed to data_sim_study because data is reserved for the use in R packages. Change the paths accordingly.
  • The run_simulations_... scripts use the parameters from a specified data. If you want to use parameter-values you generated yourself, update the path accordingly.

Re-Using the Scenarios

If you want to re-use the scenarios from the simulation study to investigate additional methods, use the scripts and documentation provided in the SimTemplate github repository. Also refer to the documentation on contributing. If you do so please cite the simulation study, you can get a bibtex entry with citation(package="SimNPH").

minipch's People

Contributors

tobiasfellinger avatar

Stargazers

 avatar

Watchers

 avatar

minipch's Issues

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.