{"id":29625209,"url":"https://github.com/novartis/dpasurv","last_synced_at":"2025-09-02T04:12:10.749Z","repository":{"id":216519095,"uuid":"733539580","full_name":"Novartis/dpasurv","owner":"Novartis","description":"An R-package for performing dynamic path analysis on survival data with estimation of the corresponding direct, indirect, and total effects.","archived":false,"fork":false,"pushed_at":"2024-08-27T14:24:04.000Z","size":29006,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-22T08:04:57.353Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://opensource.nibr.com/dpasurv/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Novartis.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-19T14:56:27.000Z","updated_at":"2024-08-27T14:20:34.000Z","dependencies_parsed_at":"2024-06-18T03:55:03.947Z","dependency_job_id":"4661b245-9d07-44ab-84e9-52fca22be88a","html_url":"https://github.com/Novartis/dpasurv","commit_stats":null,"previous_names":["novartis/dpasurv"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Novartis/dpasurv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novartis%2Fdpasurv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novartis%2Fdpasurv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novartis%2Fdpasurv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novartis%2Fdpasurv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Novartis","download_url":"https://codeload.github.com/Novartis/dpasurv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novartis%2Fdpasurv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266248501,"owners_count":23899056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-21T06:07:38.560Z","updated_at":"2025-07-21T06:07:39.230Z","avatar_url":"https://github.com/Novartis.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"dpasurv\n====================\n\nR-package for Dynamic Path Analysis of survival data.\n\n## Overview\n\nThe *dpasurv* package is designed to perform dynamic path analysis via calls to the following principal functions:\n\n- `dpa()` fits the dynamic path models corresponding to a given dynamic path diagram; returns an object of class dpa\n- `effect()` estimates the cumulative direct and indirect effects from the fitted dpa-object; returns an object of class effect\n\nThe effect-objects can be summed together to obtain the total effect (i.e. direct effect + indirect effect) as well as plotted with bootstrap confidence intervals.\n\n## Installation\n\n``` r\n# To install the most recent stable version on CRAN:\ninstall.packages(\"dpasurv\")\n\n# To get bug fixes or new features, install the development version:\ndevtools::install_github(\"Novartis/dpasurv\")\n```\n## Usage\n\nA vignette on how to use the *dpasurv* package can be found [here](https://opensource.nibr.com/dpasurv/articles/dpa.html), and basic usage is summarized below:\n``` r\nlibrary(dpasurv)\n\n# Perform dynamic path analysis\ns \u003c- dpa(Surv(start, stop, event) ~ M + x, list(M ~ x), id = \"subject\", data = simdata, boot.n = 500)\n\n# Extract direct, indirect and total effect\ndirect \u003c- effect(x ~ outcome, s, alpha=0.05)\nindirect \u003c- effect(x ~ M ~ outcome, s, alpha=0.05)\ntotal \u003c- sum(direct, indirect)\n\n# Plot the results\npar(mfrow=c(1,3))\nplot(direct); abline(h=0, lty=2, col=2)\nplot(indirect); abline(h=0, lty=2, col=2)\nplot(total); abline(h=0, lty=2, col=2)\n\n# Plot the results with ggplot2 graphics:\nggplot.effect(list(direct, indirect, total))\n```\n\n## Citation\n\nThe dpasurv package was created as supplementary code for the following manuscript:\n\n``` r\n@article{dpasurv,\n  title={Dynamic path analysis for exploring treatment effect mediation processes in clinical trials with time-to-event endpoints},\n  author={Kormaksson, M. and Lange, M. R. and Demanse, D. and Strohmaier, S. and Duan, J. and Xie, Q. and Carbini, M. and Bossen, C. and Guettner, A. and Maniero, A.},\n  journal={Statistics in Medicine (Accepted)},\n  volume={},\n  number={},\n  pages={},\n  year={2024},\n}\n```\n\nIf you publish results obtained from the dpasurv package, please cite the above paper.\n\n## Code authors\n\n- Matthias Kormaksson, matthias-1.kormaksson_ext@novartis.com (maintainer)\n- Susanne Strohmaier, susanne.strohmaier@meduniwien.ac.at\n- Markus Lange, markus.lange@novartis.com\n- David Demanse, david.demanse@novartis.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovartis%2Fdpasurv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnovartis%2Fdpasurv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovartis%2Fdpasurv/lists"}