distcomp
Computations over Distributed Data without Aggregation
Implementing algorithms and fitting models when sites (possibly remote) share computation summaries rather than actual data over HTTP with a master R process (using 'opencpu', for example). A stratified Cox model and a singular value decomposition are provided. The former makes direct use of code from the R 'survival' package. (That is, the underlying Cox model code is derived from that in the R 'survival' package.) Sites may provide data via several means: CSV files, Redcap API, etc. An extensible design allows for new methods to be added in the future and includes facilities for local prototyping and testing. Web applications are provided (via 'shiny') for the implemented methods to help in designing and deploying the computations.
README
## About the contents of this directory This directory contains the two examples discussed in the paper, along with the data and transcripts of R sessions. They are provided for reference. ### Update The files in this directory have all been updated to refer to the current version of `distcomp`, version 1.3. All our examples work as before (see the examples in the `doc` directory). The transcripts here have been updated with session information. ## Table of Contents |Name | Description | |---------------------------|--------------------------------------------------------------------------| |`README.Rmd`, `README.Rmd` | This file plus generated Markdown | | | | |`Rprofile` | Example Rprofile for use with distcomp for setting up workspace for | | | running examples locally with `opencpu` R package | | | | |`STCoxSetup.Rout` | R Transcript for defining computation, setting up worker sites, and | | | master process using shiny apps. | |`STCoxDefn.rds` | The generated definition file for Stratified Cox Example | |`STCoxMaster.R` | Master R code produced by webapp; see transcript `STCoxSetup.Rout` | |`STCoxMaster.RDS` | Master data produced by webapp; see transcript `STCoxSetup.Rout` | |`STCoxMaster.Rout` | R Transcript executing `STCoxMaster.R` | | | | |`SVDSetup.Rout` | R Transcript for defining computation, setting up worker sites, and | | | master process using shiny apps. | |`SVDDefn.rds` | The generated definition file for SVD Example | |`SVDMaster.R` | Master R code produced by webapp; see transcript `SVDSetup.Rout` | |`SVDMaster.Rout` | R Transcript executing `SVDMaster.R` | | | | |`svd-example.R` | Plain R code for svd example | |`svd-example.Rout` | R Transcript executing `svd-example.R` including all 5 singular values | |`svd-site1.csv` | Data for Site 1 in svd example | |`svd-site2.csv` | Data for Site 2 in svd example | |`svd-site3.csv` | Data for Site 3 in svd example | | | | |`uis-example.R` | Plain R code for uis example | |`uis-example.Rout` | R Transcript executing `uis-example.R` | |`uis-site1.csv` | Data for Site 1 in uis example | |`uis-site2.csv` | Data for Site 2 in uis example | |`uis.RDS` | UIS data for comparing aggregated results |
Versions across snapshots
| Version | Repository | File | Size |
|---|---|---|---|
1.3-4 |
2026-04-09 windows/windows R-4.5 | distcomp_1.3-4.zip |
1.6 MiB |